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:
|
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…
Reference in New Issue