mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Fix resource warning in test_xmlrpc_net
This commit is contained in:
parent
5a88c38fab
commit
f1c141b7fb
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ class CurrentTimeTest(unittest.TestCase):
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
self.skipTest("network error: %s" % e)
|
self.skipTest("network error: %s" % e)
|
||||||
return
|
return
|
||||||
|
self.addCleanup(lambda: server('close')())
|
||||||
|
|
||||||
# Perform a minimal sanity check on the result, just to be sure
|
# Perform a minimal sanity check on the result, just to be sure
|
||||||
# the request means what we think it means.
|
# the request means what we think it means.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue