]> granicus.if.org Git - python/commitdiff
Use assertGreater instead of assertTrue(x > y).
authorAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 22 Jul 2009 21:29:01 +0000 (21:29 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 22 Jul 2009 21:29:01 +0000 (21:29 +0000)
Lib/test/test_asynchat.py

index 3da5878f47746c7e4b071bc8a6a52371704788f1..f49701fd84b9ca93bb0fed34d771634a68e502cd 100644 (file)
@@ -214,7 +214,7 @@ class TestAsynchat(unittest.TestCase):
         # the server might have been able to send a byte or two back, but this
         # at least checks that it received something and didn't just fail
         # (which could still result in the client not having received anything)
-        self.assertTrue(len(s.buffer) > 0)
+        self.assertGreater(len(s.buffer), 0)
 
 
 class TestAsynchat_WithPoll(TestAsynchat):