summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-28 20:14:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-28 20:14:46 (GMT)
commitf1c141b7fbbbdf7ac11931e007c774b69e088135 (patch)
tree250810116c53d96b13377bf7f16c09120b02fe85 /Lib/test
parent5a88c38fab855df4f08a790c45ac7ec2860867ba (diff)
downloadcpython-f1c141b7fbbbdf7ac11931e007c774b69e088135.zip
cpython-f1c141b7fbbbdf7ac11931e007c774b69e088135.tar.gz
cpython-f1c141b7fbbbdf7ac11931e007c774b69e088135.tar.bz2
Fix resource warning in test_xmlrpc_net
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_xmlrpc_net.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py
index a8e16f1..9ed8f8d 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.