We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca080c commit 6b183b0Copy full SHA for 6b183b0
ipyparallel/tests/__init__.py
@@ -1,12 +1,10 @@
1
"""toplevel setup/teardown for parallel tests."""
2
from __future__ import print_function
3
4
+import asyncio
5
import os
-import tempfile
6
import time
7
-from subprocess import PIPE
8
from subprocess import Popen
9
-from subprocess import STDOUT
10
11
from IPython.paths import get_ipython_dir
12
@@ -125,7 +123,9 @@ def teardown():
125
123
p = launchers.pop()
126
124
if p.poll() is None:
127
try:
128
- p.stop()
+ f = p.stop()
+ if f:
+ asyncio.run(f)
129
except Exception as e:
130
print(e)
131
pass
0 commit comments