summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 18c08507..ecc464cc 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -657,7 +657,8 @@ class BadFileTracerTest(FileTracerTest):
if excmsg:
assert excmsg in stderr
if excmsgs:
- assert any(em in stderr for em in excmsgs), f"expected one of {excmsgs} in stderr"
+ found_exc = any(em in stderr for em in excmsgs) # pragma: part covered
+ assert found_exc, f"expected one of {excmsgs} in stderr"
def test_file_tracer_has_no_file_tracer_method(self):
self.make_file("bad_plugin.py", """\