diff options
author | Andrew Scheller <github@loowis.durge.org> | 2014-04-16 03:28:40 +0100 |
---|---|---|
committer | Andrew Scheller <github@loowis.durge.org> | 2014-04-16 03:28:40 +0100 |
commit | 1b997d52441287727ccc61d7541043549d5908ee (patch) | |
tree | 20416b9b3fb35ff1b07c7739050aad6773a33e81 /tests/basics/memoryerror.py | |
parent | 2822d4e6ce9cdb29fcf4646212519447da338678 (diff) | |
download | micropython-1b997d52441287727ccc61d7541043549d5908ee.tar.gz micropython-1b997d52441287727ccc61d7541043549d5908ee.zip |
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)
Diffstat (limited to 'tests/basics/memoryerror.py')
-rw-r--r-- | tests/basics/memoryerror.py | 17 |
1 files changed, 6 insertions, 11 deletions
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]) |