Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1c141b

Browse files
committed
Fix resource warning in test_xmlrpc_net
1 parent 5a88c38 commit f1c141b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_xmlrpc_net.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_python_builders(self):
4545
except socket.error as e:
4646
self.skipTest("network error: %s" % e)
4747
return
48+
self.addCleanup(lambda: server('close')())
4849

4950
# Perform a minimal sanity check on the result, just to be sure
5051
# the request means what we think it means.

0 commit comments

Comments
 (0)