diff --git a/.travis.yml b/.travis.yml index a7bac06..f61ed3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,4 @@ python: install: - pip install . - pip install -r requirements.txt -script: pytest +script: python -m pytest diff --git a/pyspeedup/concurrent/_cache.py b/pyspeedup/concurrent/_cache.py index f901cee..8a3178e 100644 --- a/pyspeedup/concurrent/_cache.py +++ b/pyspeedup/concurrent/_cache.py @@ -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()