diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-28 17:29:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-28 17:29:52 -0400 |
commit | c5c1ba084b0b548ff8869cbc086e81608c329eb6 (patch) | |
tree | 6b2457d8a63aaccd0099b1e5fc2592caf7e44ac5 /coverage/control.py | |
parent | 82213596f5301981ea59c3067f8738ff9dd54bbc (diff) | |
download | python-coveragepy-git-c5c1ba084b0b548ff8869cbc086e81608c329eb6.tar.gz |
refactor: convert %-strings to f-strings
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py index fb7f09c4..e1eb9add 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -443,9 +443,7 @@ class Coverage: elif dycon == "test_function": context_switchers = [should_start_context_test_function] else: - raise CoverageException( - f"Don't understand dynamic_context setting: {dycon!r}" - ) + raise CoverageException(f"Don't understand dynamic_context setting: {dycon!r}") context_switchers.extend( plugin.dynamic_context for plugin in self._plugins.context_switchers @@ -599,9 +597,7 @@ class Coverage: """ if not self._started: # pragma: part started - raise CoverageException( - "Cannot switch context, coverage is not started" - ) + raise CoverageException("Cannot switch context, coverage is not started") if self._collector.should_start_context: self._warn("Conflicting dynamic contexts", slug="dynamic-conflict", once=True) |