summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-13 18:42:09 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-13 18:42:09 (GMT)
commitdaa9e239f0cd149bc1f3a52098aa666d3b2cd770 (patch)
treeb84d3778e04ad4cce8689416ac452699a8add15c /Lib/test/test_socket.py
parent77f6411d9630c44b2b959ec8a4eb9d21078c1826 (diff)
parentf056b04eea2363309990916e653704a4c6c10b81 (diff)
downloadcpython-daa9e239f0cd149bc1f3a52098aa666d3b2cd770.zip
cpython-daa9e239f0cd149bc1f3a52098aa666d3b2cd770.tar.gz
cpython-daa9e239f0cd149bc1f3a52098aa666d3b2cd770.tar.bz2
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 53ace04..a5657c7 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)