Skip to content

Commit

Permalink
Fixed True<=>False typo in the eintr unittest that had caused failure…
Browse files Browse the repository at this point in the history
… on Python 3.5, replacing assertTrue(a==b) with assertEqual(a,b).
  • Loading branch information
shinji-s committed Nov 5, 2015
1 parent 0c54137 commit 0123b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/select_connection_ioloop_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ def test_eintr(self, is_resumable_mock, is_resumable_raw=pika.adapters
self.poller.start()
self.assertTrue(self._eintr_read_handler_is_called)
if pika.compat.EINTR_IS_EXPOSED:
self.assertTrue(is_resumable_mock.call_count == 1)
self.assertEqual(is_resumable_mock.call_count, 1)
else:
self.assertFalse(is_resumable_mock.call_count == 0)
self.assertEqual(is_resumable_mock.call_count, 0)


class IOLoopEintrTestCasePoll(IOLoopEintrTestCaseSelect):
Expand Down

0 comments on commit 0123b92

Please sign in to comment.