mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Make test_nntplib more robust
This commit is contained in:
parent
719a449ba6
commit
3bce11cbbd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user