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

Method test_close_flushes

Lib/test/test_io/test_general.py:451–455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

449 self._check_base_destructor(self.TextIOBase)
450
451 def test_close_flushes(self):
452 with self.open(os_helper.TESTFN, "wb") as f:
453 f.write(b"xxx")
454 with self.open(os_helper.TESTFN, "rb") as f:
455 self.assertEqual(f.read(), b"xxx")
456
457 def test_array_writes(self):
458 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