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

Method tearDown

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

Source from the content-addressed store, hash-verified

1140class _TestMboxMMDF(_TestSingleFile):
1141
1142 def tearDown(self):
1143 super().tearDown()
1144 self._box.close()
1145 self._delete_recursively(self._path)
1146 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
1147 os_helper.unlink(lock_remnant)
1148
1149 def assertMailboxEmpty(self):
1150 with open(self._path, 'rb') as f:

Callers

nothing calls this directly

Calls 7

superClass · 0.85
_delete_recursivelyMethod · 0.80
escapeMethod · 0.80
tearDownMethod · 0.45
closeMethod · 0.45
globMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected