Fix resource warning in test_xmlrpc_net

This commit is contained in:
Antoine Pitrou 2011-11-28 21:14:46 +01:00
parent 5a88c38fab
commit f1c141b7fb
1 changed files with 1 additions and 0 deletions

View File

@ -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.