Fix resource warning in test_xmlrpc_net
This commit is contained in:
parent
5a88c38fab
commit
f1c141b7fb
|
@ -45,6 +45,7 @@ class CurrentTimeTest(unittest.TestCase):
|
|||
except socket.error as e:
|
||||
self.skipTest("network error: %s" % e)
|
||||
return
|
||||
self.addCleanup(lambda: server('close')())
|
||||
|
||||
# Perform a minimal sanity check on the result, just to be sure
|
||||
# the request means what we think it means.
|
||||
|
|
Loading…
Reference in New Issue