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

Method test_get_file_can_be_closed_twice

Lib/test/test_mailbox.py:300–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298 _sample_message)
299
300 def test_get_file_can_be_closed_twice(self):
301 # Issue 11700
302 key = self._box.add(_sample_message)
303 f = self._box.get_file(key)
304 f.close()
305 f.close()
306
307 def test_iterkeys(self):
308 # Get keys using iterkeys()

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
get_fileMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected