summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-01 18:25:06 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-02 07:38:19 -0400
commitddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch)
tree5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_plugins.py
parent4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff)
downloadpython-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index fec92749..21aeab14 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -22,7 +22,7 @@ from tests.coveragetest import CoverageTest
from tests.helpers import CheckUniqueFilenames
-class FakeConfig(object):
+class FakeConfig:
"""A fake config for use in tests."""
def __init__(self, plugin, options):
@@ -644,7 +644,7 @@ class BadFileTracerTest(FileTracerTest):
# Disabling plug-in '...' due to previous exception
# or:
# Disabling plug-in '...' due to an exception:
- msg = "Disabling plug-in '%s.%s' due to " % (module_name, plugin_name)
+ msg = f"Disabling plug-in '{module_name}.{plugin_name}' due to "
warnings = stderr.count(msg)
assert warnings == 1