Commit 3bce11cb authored by Antoine Pitrou's avatar Antoine Pitrou

Make test_nntplib more robust

parent 719a449b
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment