Skip to content

Commit

Permalink
Some versions don't work with pytest command.
Browse files Browse the repository at this point in the history
All work with explicit python module call. Also, graceful exit was
missing some grace.
  • Loading branch information
cdusold committed Aug 18, 2017
1 parent c87c7d1 commit 54b1fa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -18,4 +18,4 @@ python:
install:
- pip install .
- pip install -r requirements.txt
script: pytest
script: python -m pytest
5 changes: 4 additions & 1 deletion pyspeedup/concurrent/_cache.py
Expand Up @@ -15,7 +15,10 @@

def _closeProcessGracefully(instance):
if instance is not None:
instance._q.put(_EndProcess)
try:
instance._q.put(_EndProcess)
except AssertionError:
pass
instance._q.close()
instance._t.terminate()
instance._t.join()
Expand Down

0 comments on commit 54b1fa3

Please sign in to comment.