diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-13 10:09:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-13 10:09:29 -0500 |
commit | ccc84c5a7fbaece36ae0d1a9a994efcc40cf0641 (patch) | |
tree | 099c3fdf0e02b1bb5790108129e0dfb34f130bca /tests/test_process.py | |
parent | e93531e45438d632a55c570cdcaac7c93fe1814e (diff) | |
download | python-coveragepy-git-ccc84c5a7fbaece36ae0d1a9a994efcc40cf0641.tar.gz |
addCleanup cleanup
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): |