Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug occasional error in test_queue_status #5291

Merged
merged 1 commit into from Mar 7, 2014

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 7, 2014

this shouldn't actually fix the bug, just provide more information the next time it fails.

this shouldn't actually fix the bug, just provide more information the next time it fails.
@@ -195,7 +195,12 @@ def test_queue_status(self):
self.assertTrue(isinstance(allqs, dict))
intkeys = list(allqs.keys())
intkeys.remove('unassigned')
self.assertEqual(sorted(intkeys), sorted(self.client.ids))
print("intkeys", intkeys)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make more sense to print the sorted versions of these, as that is what the test compares?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the failure was in sorting them:

Traceback (most recent call last):
  File "/home/takluyver/.local/lib/python3.3/site-packages/IPython/parallel/tests/test_client.py", line 198, in test_queue_status
    self.assertEqual(sorted(intkeys), sorted(self.client.ids))
nose.proxy.TypeError: unorderable types: str() < int()

takluyver added a commit that referenced this pull request Mar 7, 2014
debug occasional error in test_queue_status
@takluyver takluyver merged commit 1745b7f into ipython:master Mar 7, 2014
@minrk minrk deleted the debug-queue-status branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
debug occasional error in test_queue_status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants