MCPcopy Create free account
hub / github.com/python/cpython / test_multi_close

Method test_multi_close

Lib/test/test_io/test_bufferedio.py:168–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 raw.close = lambda: None
167
168 def test_multi_close(self):
169 raw = self.MockRawIO()
170 b = self.tp(raw)
171 b.close()
172 b.close()
173 b.close()
174 self.assertRaises(ValueError, b.flush)
175
176 def test_unseekable(self):
177 bufio = self.tp(self.MockUnseekableIO(b"A" * 10))

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected