summaryrefslogtreecommitdiff
path: root/tests/mixins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-17 22:08:41 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-17 22:09:52 -0500
commit26b680d3d4253258161f1a20d556fbf3f3622581 (patch)
tree9febea3a5dbfbe1480a94f4214e09773ae59d875 /tests/mixins.py
parentad1fcae833aeeae38db9764e61eeff48aa048dff (diff)
downloadpython-coveragepy-git-26b680d3d4253258161f1a20d556fbf3f3622581.tar.gz
test: properly reset a few globals between every test
Diffstat (limited to 'tests/mixins.py')
-rw-r--r--tests/mixins.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mixins.py b/tests/mixins.py
index e55a05b9..25663c6e 100644
--- a/tests/mixins.py
+++ b/tests/mixins.py
@@ -66,10 +66,9 @@ class TempDirMixin:
# nose's caching importer can get confused. The full path prevents
# problems.
sys.path.insert(0, os.getcwd())
-
- yield None
+ yield
else:
- yield None
+ yield
def make_file(self, filename, text="", bytes=b"", newline=None):
"""Make a file. See `tests.helpers.make_file`"""