From 4a5038ad3b64b3578f4c5a9f23118e56c51c2ed6 2011-07-04 21:02:29 From: MinRK Date: 2011-07-04 21:02:29 Subject: [PATCH] make sure extra client in purge_results test is closed leaving an open client causes problems in subsequent tests. --- diff --git a/IPython/parallel/tests/test_client.py b/IPython/parallel/tests/test_client.py index 094854c..440706b 100644 --- a/IPython/parallel/tests/test_client.py +++ b/IPython/parallel/tests/test_client.py @@ -260,6 +260,8 @@ class TestClient(ClusterTestCase): self.client.purge_results(hist[-1]) newhist = self.client.hub_history() self.assertEquals(len(newhist)+1,len(hist)) + rc2.spin() + rc2.close() def test_purge_all_results(self): self.client.purge_results('all')