diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-28 21:14:46 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-28 21:14:46 +0100 |
| commit | f1c141b7fbbbdf7ac11931e007c774b69e088135 (patch) | |
| tree | 250810116c53d96b13377bf7f16c09120b02fe85 /Lib/test/test_xmlrpc_net.py | |
| parent | 5a88c38fab855df4f08a790c45ac7ec2860867ba (diff) | |
| download | cpython-git-f1c141b7fbbbdf7ac11931e007c774b69e088135.tar.gz | |
Fix resource warning in test_xmlrpc_net
Diffstat (limited to 'Lib/test/test_xmlrpc_net.py')
| -rw-r--r-- | Lib/test/test_xmlrpc_net.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py index a8e16f1af9..9ed8f8d3e7 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. |
