From 1b997d52441287727ccc61d7541043549d5908ee Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Wed, 16 Apr 2014 03:28:40 +0100 Subject: run-tests can now skip certain tests when run under Travis CI See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function) --- tests/basics/memoryerror.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'tests/basics/memoryerror.py') diff --git a/tests/basics/memoryerror.py b/tests/basics/memoryerror.py index e9aa97d858..b4be420c31 100644 --- a/tests/basics/memoryerror.py +++ b/tests/basics/memoryerror.py @@ -1,11 +1,6 @@ -# 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]) +l = list(range(10000)) +try: + 100000000 * l +except MemoryError: + print('MemoryError') +print(len(l), l[0], l[-1]) -- cgit v1.2.3