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

Method test_detach

Lib/test/test_io.py:1262–1268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1260 # Tests common to BufferedReader, BufferedWriter and BufferedRandom
1261
1262 def test_detach(self):
1263 raw = self.MockRawIO()
1264 buf = self.tp(raw)
1265 self.assertIs(buf.detach(), raw)
1266 self.assertRaises(ValueError, buf.detach)
1267
1268 repr(buf) # Should still work
1269
1270 def test_fileno(self):
1271 rawio = self.MockRawIO()

Callers

nothing calls this directly

Calls 4

reprFunction · 0.85
assertIsMethod · 0.45
detachMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected