[Python-checkins] r74182 - python/branches/py3k/Lib/test/test_asynchat.py
alexandre.vassalotti
python-checkins at python.org
Wed Jul 22 23:29:02 CEST 2009
Author: alexandre.vassalotti
Date: Wed Jul 22 23:29:01 2009
New Revision: 74182
Log:
Use assertGreater instead of assertTrue(x > y).
Modified:
python/branches/py3k/Lib/test/test_asynchat.py
Modified: python/branches/py3k/Lib/test/test_asynchat.py
==============================================================================
--- python/branches/py3k/Lib/test/test_asynchat.py (original)
+++ python/branches/py3k/Lib/test/test_asynchat.py Wed Jul 22 23:29:01 2009
@@ -214,7 +214,7 @@
# 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):
More information about the Python-checkins
mailing list