From ef59c1f9ebe688d9be9fdac351de6087b3316db0 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Wed, 26 Jul 2017 21:07:11 +0900 Subject: [PATCH] bpo-30188: fix TypeError in test_nntplib (regression of 5b4feb7) --- Lib/test/test_nntplib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 482de66e3f4782f..e2cd36a4d041264 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):