MCPcopy Index your code
hub / github.com/RustPython/RustPython / tearDown

Method tearDown

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

Source from the content-addressed store, hash-verified

1126class _TestMboxMMDF(_TestSingleFile):
1127
1128 def tearDown(self):
1129 super().tearDown()
1130 self._box.close()
1131 self._delete_recursively(self._path)
1132 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
1133 os_helper.unlink(lock_remnant)
1134
1135 def assertMailboxEmpty(self):
1136 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