commit | 3bce11cbbdfa1ea498b8fcaddce5c1adb3a2e32f | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Nov 21 17:14:19 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Nov 21 17:14:19 2010 +0000 |
tree | eab694dac3b5c354c62c29944db4d327e85d4444 | |
parent | 719a449ba6ee2390758efa0751bbb1277bd61174 [diff] [blame] |
Make test_nntplib more robust
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 13bb505..a387f61 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py
@@ -227,8 +227,10 @@ def test_zzquit(self): # This test must be called last, hence the name cls = type(self) - self.server.quit() - cls.server = None + try: + self.server.quit() + finally: + cls.server = None @classmethod def wrap_methods(cls):