Make test_nntplib more robust

This commit is contained in:
Antoine Pitrou 2010-11-21 17:14:19 +00:00
parent 719a449ba6
commit 3bce11cbbd
1 changed files with 4 additions and 2 deletions

View File

@ -227,8 +227,10 @@ class NetworkedNNTPTestsMixin:
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):