MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_name_closed_socketio

Method test_name_closed_socketio

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

Source from the content-addressed store, hash-verified

1835 support.gc_collect()
1836
1837 def test_name_closed_socketio(self):
1838 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
1839 fp = sock.makefile("rb")
1840 fp.close()
1841 self.assertEqual(repr(fp), "<_io.BufferedReader name=-1>")
1842
1843 def test_unusable_closed_socketio(self):
1844 with socket.socket() as sock:

Callers

nothing calls this directly

Calls 5

reprFunction · 0.85
socketMethod · 0.80
makefileMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected