Skip to content

Commit

Permalink
test with pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
wemoloh committed Apr 17, 2018
1 parent d56b64d commit 6d8dcd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- 3.5
- 3.6
- 3.7-dev
- pypy3.5
env:
- EIDER_WS_LIB=aiohttp
- EIDER_WS_LIB=websockets
Expand Down
15 changes: 9 additions & 6 deletions tests/test_eider.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,15 @@ def test_gc(rroot):
assert n + 1 == rroot.num_objects()
del rval

# make sure RemoteObject._close() (triggered by RemoteObject.__del__)
# completes
collect()
get_event_loop().run_until_complete(sleep(0.1))

assert n == rroot.num_objects()
# Make sure RemoteObject._close() (triggered by RemoteObject.__del__)
# completes. This may take several calls to gc.collect() on PyPy.
for _ in range(10):
collect()
get_event_loop().run_until_complete(sleep(0.1))
if n == rroot.num_objects():
break
else:
assert False


def test_with(rroot):
Expand Down

0 comments on commit 6d8dcd3

Please sign in to comment.