MCPcopy Index your code
hub / github.com/python/cpython / test_name_closed_socketio

Method test_name_closed_socketio

Lib/test/test_socket.py:1888–1892  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1886 support.gc_collect()
1887
1888 def test_name_closed_socketio(self):
1889 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
1890 fp = sock.makefile("rb")
1891 fp.close()
1892 self.assertEqual(repr(fp), "<_io.BufferedReader name=-1>")
1893
1894 def test_unusable_closed_socketio(self):
1895 with socket.socket() as sock:

Callers

nothing calls this directly

Calls 4

socketMethod · 0.80
makefileMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected