[Python-checkins] r86645 - python/branches/py3k/Lib/test/test_nntplib.py
antoine.pitrou
python-checkins at python.org
Sun Nov 21 18:14:19 CET 2010
Author: antoine.pitrou
Date: Sun Nov 21 18:14:19 2010
New Revision: 86645
Log:
Make test_nntplib more robust
Modified:
python/branches/py3k/Lib/test/test_nntplib.py
Modified: python/branches/py3k/Lib/test/test_nntplib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_nntplib.py (original)
+++ python/branches/py3k/Lib/test/test_nntplib.py Sun Nov 21 18:14:19 2010
@@ -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):
More information about the Python-checkins
mailing list