From f1c141b7fbbbdf7ac11931e007c774b69e088135 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 28 Nov 2011 21:14:46 +0100 Subject: [PATCH] Fix resource warning in test_xmlrpc_net --- Lib/test/test_xmlrpc_net.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py index a8e16f1af98..9ed8f8d3e7c 100644 --- a/Lib/test/test_xmlrpc_net.py +++ b/Lib/test/test_xmlrpc_net.py @@ -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.