From ef68481fb724d2d1f2d50a3abe32f240b9b854e9 2014-02-12 00:46:21 From: MinRK Date: 2014-02-12 00:46:21 Subject: [PATCH] catch KeyboardInterrupt in parallel tests teardown because wtf Windows? --- diff --git a/IPython/parallel/tests/__init__.py b/IPython/parallel/tests/__init__.py index 3a7d6c6..9f7f70e 100644 --- a/IPython/parallel/tests/__init__.py +++ b/IPython/parallel/tests/__init__.py @@ -109,7 +109,10 @@ def add_engines(n=1, profile='iptest', total=False): return eps def teardown(): - time.sleep(1) + try: + time.sleep(1) + except KeyboardInterrupt: + return while launchers: p = launchers.pop() if p.poll() is None: @@ -119,7 +122,10 @@ def teardown(): print(e) pass if p.poll() is None: - time.sleep(.25) + try: + time.sleep(.25) + except KeyboardInterrupt: + return if p.poll() is None: try: print('cleaning up test process...')