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

Method test_multi_close

Lib/test/test_io/test_textio.py:985–990  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

983 txt.flush = lambda: None
984
985 def test_multi_close(self):
986 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
987 txt.close()
988 txt.close()
989 txt.close()
990 self.assertRaises(ValueError, txt.flush)
991
992 def test_unseekable(self):
993 txt = self.TextIOWrapper(self.MockUnseekableIO(self.testdata), encoding="utf-8")

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected