summaryrefslogtreecommitdiff
path: root/coverage/test_helpers.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-04-25 09:30:35 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-04-25 09:30:35 -0400
commitf5c295541ba5a8da6474103d3e75b103e9538e25 (patch)
tree4428dadf2248a941c94f64da2099445d3c48aa69 /coverage/test_helpers.py
parent5f15f1b8c251eae039b5fd543efe8d2a4caf3acf (diff)
downloadpython-coveragepy-f5c295541ba5a8da6474103d3e75b103e9538e25.tar.gz
Not sure how I missed this UndefinedLocal.... :(
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r--coverage/test_helpers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py
index 3f058b1..278b0a8 100644
--- a/coverage/test_helpers.py
+++ b/coverage/test_helpers.py
@@ -257,6 +257,7 @@ class TempDirMixin(SysPathAwareMixin, ModuleAwareMixin, TestCase):
def report_on_class_behavior(cls):
"""Called at process exit to report on class behavior."""
for test_class, behavior in cls.class_behaviors.items():
+ bad = ""
if behavior.tests <= behavior.skipped:
bad = ""
elif behavior.temp_dir and behavior.tests_making_files == 0:
@@ -264,8 +265,6 @@ class TempDirMixin(SysPathAwareMixin, ModuleAwareMixin, TestCase):
bad = "Inefficient"
elif not behavior.temp_dir and behavior.tests_making_files > 0:
bad = "Unsafe"
- else:
- bad = ""
if bad:
if behavior.temp_dir: