diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 21:29:01 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 21:29:01 (GMT) |
commit | 953f5583b6e381aeda6a33afb5faa850f8715b5f (patch) | |
tree | c8d896318fb353052e34eaf8b6a5d7deb7eca53f | |
parent | 5ff02352e8c85d377b0e76d47b8a5899eb683f50 (diff) | |
download | cpython-953f5583b6e381aeda6a33afb5faa850f8715b5f.zip cpython-953f5583b6e381aeda6a33afb5faa850f8715b5f.tar.gz cpython-953f5583b6e381aeda6a33afb5faa850f8715b5f.tar.bz2 |
Use assertGreater instead of assertTrue(x > y).
-rw-r--r-- | Lib/test/test_asynchat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index 3da5878..f49701f 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -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): |