summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2017-10-28 12:26:07 +0300
committerOmer Katz <omer.drow@gmail.com>2017-10-28 12:26:07 +0300
commit8500a14c67202fda7dd9763767c255d6574bb14f (patch)
treebb5d04979a90d61f6a64a9418752a7198934fd4e
parent75d219114a0f37009e4714908bb38aaaaba4204e (diff)
downloadpy-amqp-8500a14c67202fda7dd9763767c255d6574bb14f.tar.gz
Increase coverage for the having_timeout() context manager.
-rw-r--r--t/unit/test_transport.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/unit/test_transport.py b/t/unit/test_transport.py
index 42fcdf4..856c04e 100644
--- a/t/unit/test_transport.py
+++ b/t/unit/test_transport.py
@@ -433,6 +433,10 @@ class test_AbstractTransport:
self.t.connect()
assert cloexec_mock.called
+ def test_having_timeout_none(self):
+ with self.t.having_timeout(None) as actual_sock:
+ assert actual_sock == self.t.sock
+
class test_SSLTransport: