From 087da3175829f5fdb0db0c372872b905304cda55 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 25 Apr 2015 09:30:35 -0400 Subject: Not sure how I missed this UndefinedLocal.... :( --- coverage/test_helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/test_helpers.py') diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index 3f058b1d..278b0a8a 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: -- cgit v1.2.1