bpo-30188: fix TypeError in test_nntplib (GH-2892)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 26 Jul 2017 14:43:22 +0000 (23:43 +0900)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2017 14:43:22 +0000 (23:43 +0900)
fixes regression of 5b4feb7

Lib/test/test_nntplib.py

index 482de66e3f4782fa6b9c8a9208c7c7abf230654c..e2cd36a4d041264c324aa39e0811ac0d68af1a6a 100644 (file)
@@ -274,9 +274,9 @@ class NetworkedNNTPTestsMixin:
 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):