diff options
author | Andrey Petrov <andrey.petrov@shazow.net> | 2015-09-03 18:12:36 -0700 |
---|---|---|
committer | Andrey Petrov <andrey.petrov@shazow.net> | 2015-09-03 18:12:36 -0700 |
commit | 571ef485accdc32725d339f23ffaa0da2e97fb01 (patch) | |
tree | 210bb58d2b3e1a07b1af067dab3f64f3448eefa7 | |
parent | 381a3da1d5c44de486660bf0bd2bef829eac6fc7 (diff) | |
download | urllib3-571ef485accdc32725d339f23ffaa0da2e97fb01.tar.gz |
tests: assertGreater -> assertTrue for py26
-rw-r--r-- | test/with_dummyserver/test_connectionpool.py | 2 |
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.""" |