summaryrefslogtreecommitdiff
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-13 19:42:09 +0100
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-13 19:42:09 +0100
commitdaa9e239f0cd149bc1f3a52098aa666d3b2cd770 (patch)
treeb84d3778e04ad4cce8689416ac452699a8add15c /Lib/test/test_socket.py
parent77f6411d9630c44b2b959ec8a4eb9d21078c1826 (diff)
parentf056b04eea2363309990916e653704a4c6c10b81 (diff)
downloadcpython-git-daa9e239f0cd149bc1f3a52098aa666d3b2cd770.tar.gz
Merge 3.6
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 53ace04e4f..a5657c70c6 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1490,7 +1490,8 @@ class GeneralModuleTests(unittest.TestCase):
# type and populates the socket object.
#
# On Windows this trick won't work, so the test is skipped.
- fd, _ = tempfile.mkstemp()
+ fd, path = tempfile.mkstemp()
+ self.addCleanup(os.unlink, path)
with socket.socket(family=42424, type=13331, fileno=fd) as s:
self.assertEqual(s.family, 42424)
self.assertEqual(s.type, 13331)