summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@shazow.net>2015-09-03 18:12:36 -0700
committerAndrey Petrov <andrey.petrov@shazow.net>2015-09-03 18:12:36 -0700
commit571ef485accdc32725d339f23ffaa0da2e97fb01 (patch)
tree210bb58d2b3e1a07b1af067dab3f64f3448eefa7
parent381a3da1d5c44de486660bf0bd2bef829eac6fc7 (diff)
downloadurllib3-571ef485accdc32725d339f23ffaa0da2e97fb01.tar.gz
tests: assertGreater -> assertTrue for py26
-rw-r--r--test/with_dummyserver/test_connectionpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/with_dummyserver/test_connectionpool.py b/test/with_dummyserver/test_connectionpool.py
index 856f0aa5..6b707deb 100644
--- a/test/with_dummyserver/test_connectionpool.py
+++ b/test/with_dummyserver/test_connectionpool.py
@@ -277,7 +277,7 @@ class TestConnectionPool(HTTPDummyServerTestCase):
conn = pool._get_conn()
pool._make_request(conn, 'GET', '/')
tcp_nodelay_setting = conn.sock.getsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY)
- self.assertGreater(tcp_nodelay_setting, 0)
+ self.assertTrue(tcp_nodelay_setting)
def test_socket_options(self):
"""Test that connections accept socket options."""