Make test_nntplib more robust

This commit is contained in:
Antoine Pitrou 2010-11-21 17:14:19 +00:00
parent 719a449ba6
commit 3bce11cbbd

View File

@ -227,7 +227,9 @@ class NetworkedNNTPTestsMixin:
def test_zzquit(self):
# This test must be called last, hence the name
cls = type(self)
try:
self.server.quit()
finally:
cls.server = None
@classmethod