Browse Source
See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function)pull/499/head
Andrew Scheller
11 years ago
2 changed files with 23 additions and 16 deletions
@ -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]) |
|||
|
Loading…
Reference in new issue