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