From 22c379694d137dae7ece6ec3e64865073fc88be4 2014-03-07 22:21:09 From: MinRK <benjaminrk@gmail.com> Date: 2014-03-07 22:21:09 Subject: [PATCH] debug occasional error in test_queue_status this shouldn't actually fix the bug, just provide more information the next time it fails. --- diff --git a/IPython/parallel/tests/test_client.py b/IPython/parallel/tests/test_client.py index fd70b6d..11d7480 100644 --- a/IPython/parallel/tests/test_client.py +++ b/IPython/parallel/tests/test_client.py @@ -195,7 +195,12 @@ class TestClient(ClusterTestCase): self.assertTrue(isinstance(allqs, dict)) intkeys = list(allqs.keys()) intkeys.remove('unassigned') - self.assertEqual(sorted(intkeys), sorted(self.client.ids)) + print("intkeys", intkeys) + intkeys = sorted(intkeys) + ids = self.client.ids + print("client.ids", ids) + ids = sorted(self.client.ids) + self.assertEqual(intkeys, ids) unassigned = allqs.pop('unassigned') for eid,qs in allqs.items(): self.assertTrue(isinstance(qs, dict))