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

Method test_multi_close

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

Source from the content-addressed store, hash-verified

574 os.close(fd)
575
576 def test_multi_close(self):
577 f = self.open(os_helper.TESTFN, "wb", buffering=0)
578 f.close()
579 f.close()
580 f.close()
581 self.assertRaises(ValueError, f.flush)
582
583 def test_RawIOBase_read(self):
584 # Exercise the default limited RawIOBase.read(n) implementation (which

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
closeMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected