summaryrefslogtreecommitdiff
path: root/tests/basics/memoryerror.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 12:30:30 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 12:30:30 +0100
commit256b319d566a434e5b553fdb9ea5bd8d0eb2af86 (patch)
treea6625376a064bbf1ebd0f84eebeb5c07adcb1316 /tests/basics/memoryerror.py
parent48aaa27c6a07af524ac6eaafac67815b5de13396 (diff)
tests: Disable memoryerror.py test, since it fails on travis.
Would be good to test this, but need to find a way to optionally not running it when on travis.
Diffstat (limited to 'tests/basics/memoryerror.py')
-rw-r--r--tests/basics/memoryerror.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/basics/memoryerror.py b/tests/basics/memoryerror.py
index b4be420c3..e9aa97d85 100644
--- a/tests/basics/memoryerror.py
+++ b/tests/basics/memoryerror.py
@@ -1,6 +1,11 @@
-l = list(range(10000))
-try:
- 100000000 * l
-except MemoryError:
- print('MemoryError')
-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))
+ try:
+ 100000000 * l
+ except MemoryError:
+ print('MemoryError')
+ print(len(l), l[0], l[-1])