summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-10-20 22:36:18 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-10-20 22:36:18 (GMT)
commitea8762cae64813788633b7d2a93c2c513c01fdea (patch)
tree2afdb63d2adc9cf29fec4a7a4bb1dbffc9b654df /Lib/test/test_socket.py
parentdc5061fe10221fa7d83c4c7cd00f4f5fa2123dd0 (diff)
parent56b2cf5e8564c7221a42675d35aaa0d0c503365e (diff)
downloadcpython-ea8762cae64813788633b7d2a93c2c513c01fdea.zip
cpython-ea8762cae64813788633b7d2a93c2c513c01fdea.tar.gz
cpython-ea8762cae64813788633b7d2a93c2c513c01fdea.tar.bz2
Merge test suite fixes from 3.6
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 01d0bb9..53ace04 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -4569,6 +4569,7 @@ class TestExceptions(unittest.TestCase):
sock = socket.socket(
socket.AF_INET, socket.SOCK_STREAM, 0, sock0.fileno())
sock0.close()
+ self.addCleanup(sock.detach)
with self.assertRaises(OSError):
sock.setblocking(False)