diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
| commit | 0832af6628ca5ac02d0226899725297dd508470b (patch) | |
| tree | fc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/test/test_nntplib.py | |
| parent | ad28c7f9dad791567afa0624acfb3ba430851965 (diff) | |
| download | cpython-git-0832af6628ca5ac02d0226899725297dd508470b.tar.gz | |
Issue #16717: get rid of socket.error, replace with OSError
Diffstat (limited to 'Lib/test/test_nntplib.py')
| -rw-r--r-- | Lib/test/test_nntplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 19fb10a9c7..7cf497ac1c 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -264,7 +264,7 @@ class NetworkedNNTPTestsMixin: return False try: server.help() - except (socket.error, EOFError): + except (OSError, EOFError): return False return True |
