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

Method test_close_flushes

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

Source from the content-addressed store, hash-verified

754 self._check_base_destructor(self.TextIOBase)
755
756 def test_close_flushes(self):
757 with self.open(os_helper.TESTFN, "wb") as f:
758 f.write(b"xxx")
759 with self.open(os_helper.TESTFN, "rb") as f:
760 self.assertEqual(f.read(), b"xxx")
761
762 def test_array_writes(self):
763 a = array.array('i', range(10))

Callers

nothing calls this directly

Calls 4

openMethod · 0.45
writeMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected