diff --git a/tests/basics/memoryerror.py b/tests/basics/memoryerror.py index b4be420c31..e9aa97d858 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])