diff options
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 4f612748..1ae8e922 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -738,11 +738,7 @@ class ProcessCoverageMixin(object): else: # pragma: not covered raise Exception("Couldn't find a place for the .pth file") - self.addCleanup(self.remove_pth_path) - - def remove_pth_path(self): - # Clean up the .pth file we made. - os.remove(self.pth_path) + self.addCleanup(os.remove, self.pth_path) class ProcessStartupTest(ProcessCoverageMixin, CoverageTest): |