mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Make test_nntplib more robust
This commit is contained in:
parent
719a449ba6
commit
3bce11cbbd
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue