diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-20 06:16:17 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-20 06:16:17 -0400 |
commit | 4c23e21e77eb5af4f45662ccf443ad08dd661ed5 (patch) | |
tree | 88d3f3d49cd63b5319df6b119fffb9664dc917b4 /tests/mixins.py | |
parent | 78c0915d1638e2077d55989b1de856fe40378fce (diff) | |
download | python-coveragepy-git-4c23e21e77eb5af4f45662ccf443ad08dd661ed5.tar.gz |
test: remove file-removal that isn't needed anymore
Diffstat (limited to 'tests/mixins.py')
-rw-r--r-- | tests/mixins.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mixins.py b/tests/mixins.py index 25663c6e..3d623fb3 100644 --- a/tests/mixins.py +++ b/tests/mixins.py @@ -15,7 +15,7 @@ import sys import pytest from coverage.misc import SysModuleSaver -from tests.helpers import change_dir, make_file, remove_files, remove_tree +from tests.helpers import change_dir, make_file, remove_tree class PytestBase: @@ -99,10 +99,9 @@ class RestoreModulesMixin: # So that we can re-import files, clean them out first. self._sys_module_saver.restore() - # Also have to clean out the .pyc file, since the timestamp + # Also have to clean out the .pyc files, since the timestamp # resolution is only one second, a changed file might not be # picked up. - remove_files("*.pyc", "*$py.class") remove_tree("__pycache__") importlib.invalidate_caches() |