Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 953f558

Browse files
committed
Use assertGreater instead of assertTrue(x > y).
1 parent 5ff0235 commit 953f558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_asynchat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def test_close_when_done(self):
214214
# the server might have been able to send a byte or two back, but this
215215
# at least checks that it received something and didn't just fail
216216
# (which could still result in the client not having received anything)
217-
self.assertTrue(len(s.buffer) > 0)
217+
self.assertGreater(len(s.buffer), 0)
218218

219219

220220
class TestAsynchat_WithPoll(TestAsynchat):

0 commit comments

Comments
 (0)