We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48aaa27 commit 256b319Copy full SHA for 256b319
1 file changed
tests/basics/memoryerror.py
@@ -1,6 +1,11 @@
1
-l = list(range(10000))
2
-try:
3
- 100000000 * l
4
-except MemoryError:
5
- print('MemoryError')
6
-print(len(l), l[0], l[-1])
+# this test for MemoryError can be difficult to reproduce
+# on different machine configurations (notably Travis CI)
+# so we disable it
+# TODO is there a way of testing that we are on Travis CI?
+if False:
+ l = list(range(10000))
7
+ try:
8
+ 100000000 * l
9
+ except MemoryError:
10
+ print('MemoryError')
11
+ print(len(l), l[0], l[-1])
0 commit comments