Exemple #1
0
 def _do_test_callback(self, _):
     slash.add_cleanup(self._regular_cleanup)
     slash.add_critical_cleanup(self._critical_cleanup)
     raise KeyboardInterrupt()
Exemple #2
0
def tempdir():
    d = tempfile.mkdtemp()
    slash.add_critical_cleanup(partial(shutil.rmtree, d))
    return d
Exemple #3
0
 def _do_test_callback(self, _):
     slash.add_cleanup(self._regular_cleanup)
     slash.add_critical_cleanup(self._critical_cleanup)
     raise KeyboardInterrupt()