mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +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,7 +227,9 @@ class NetworkedNNTPTestsMixin:
|
||||||
def test_zzquit(self):
|
def test_zzquit(self):
|
||||||
# This test must be called last, hence the name
|
# This test must be called last, hence the name
|
||||||
cls = type(self)
|
cls = type(self)
|
||||||
|
try:
|
||||||
self.server.quit()
|
self.server.quit()
|
||||||
|
finally:
|
||||||
cls.server = None
|
cls.server = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue