We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7806c commit bef0ce0Copy full SHA for bef0ce0
bpython/test/test_repl.py
@@ -62,13 +62,13 @@ def test_MatchesIterator(self):
62
matches=matches)
63
64
# should be falsey before we enter (i.e. 'not active')
65
- self.assertEqual(bool(matches_iterator), False)
+ self.assertFalse(matches_iterator)
66
67
slice = itertools.islice(matches_iterator, 0, 9)
68
self.assertEqual(list(slice),matches * 3)
69
70
# should be truthy once we have an active match
71
- self.assertEqual(bool(matches_iterator), True)
+ self.assertTrue(matches_iterator)
72
73
self.assertEqual(matches_iterator.current(), (matches * 3)[-1])
74
0 commit comments