mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merge 3.5
This commit is contained in:
commit
f056b04eea
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue