Issue #26685: Raise OSError if closing a socket fails

This commit is contained in:
Martin Panter 2016-04-11 00:38:12 +00:00
parent f01e408c16
commit 50ab1a3694
6 changed files with 26 additions and 2 deletions

View file

@ -277,7 +277,6 @@ class SmallPtyTests(unittest.TestCase):
socketpair = self._socketpair()
masters = [s.fileno() for s in socketpair]
os.close(masters[1])
socketpair[1].close()
os.close(write_to_stdin_fd)