summaryrefslogtreecommitdiff
path: root/Lib/test/test_nntplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_nntplib.py')
-rw-r--r--Lib/test/test_nntplib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py
index 88c54f4e6f..fdd76f9e9b 100644
--- a/Lib/test/test_nntplib.py
+++ b/Lib/test/test_nntplib.py
@@ -258,6 +258,10 @@ class NetworkedNNTPTestsMixin:
# value
setattr(cls, name, wrap_meth(meth))
+ def test_timeout(self):
+ with self.assertRaises(ValueError):
+ self.NNTP_CLASS(self.NNTP_HOST, timeout=0, usenetrc=False)
+
def test_with_statement(self):
def is_connected():
if not hasattr(server, 'file'):