[Python-checkins] bpo-30188: fix TypeError in test_nntplib (GH-2892)

INADA Naoki webhook-mailer at python.org
Wed Jul 26 10:43:29 EDT 2017


https://github.com/python/cpython/commit/067931dd95ddfa34297be9c602a796d9f8d9bea3
commit: 067931dd95ddfa34297be9c602a796d9f8d9bea3
branch: master
author: INADA Naoki <methane at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2017-07-26T23:43:22+09:00
summary:

bpo-30188: fix TypeError in test_nntplib (GH-2892)

fixes regression of 5b4feb7

files:
M Lib/test/test_nntplib.py

diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py
index 482de66e3f4..e2cd36a4d04 100644
--- a/Lib/test/test_nntplib.py
+++ b/Lib/test/test_nntplib.py
@@ -274,9 +274,9 @@ def is_connected():
 NetworkedNNTPTestsMixin.wrap_methods()
 
 
-EOF_ERRORS = [EOFError]
+EOF_ERRORS = (EOFError,)
 if ssl is not None:
-    EOF_ERRORS.append(ssl.SSLEOFError)
+    EOF_ERRORS += (ssl.SSLEOFError,)
 
 
 class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase):



More information about the Python-checkins mailing list