diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-13 18:41:07 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-13 18:41:07 (GMT) |
commit | f056b04eea2363309990916e653704a4c6c10b81 (patch) | |
tree | c9422de67d48ab64ee570eca42ccf5428139a75a /Lib | |
parent | 24e4239434a00fa38187e390eb8ab29f1864350c (diff) | |
parent | 547c1b9acef2d7adcb8d3540bd969d115073d953 (diff) | |
download | cpython-f056b04eea2363309990916e653704a4c6c10b81.zip cpython-f056b04eea2363309990916e653704a4c6c10b81.tar.gz cpython-f056b04eea2363309990916e653704a4c6c10b81.tar.bz2 |
Merge 3.5
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_socket.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index a56d8a4..59564c9 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1480,7 +1480,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) |