From: INADA Naoki Date: Wed, 26 Jul 2017 14:43:22 +0000 (+0900) Subject: bpo-30188: fix TypeError in test_nntplib (GH-2892) X-Git-Tag: v3.7.0a1~364 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=067931dd95ddfa34297be9c602a796d9f8d9bea3;p=thirdparty%2FPython%2Fcpython.git bpo-30188: fix TypeError in test_nntplib (GH-2892) fixes regression of 5b4feb7 --- diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 482de66e3f47..e2cd36a4d041 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -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):