summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
commitd02be78c3a0ee3022be56c623bb9bdcad1e9acd4 (patch)
tree1e74153bb4741f6a9e2f1e1f55d2b9960a490bb3 /tests/test_plugins.py
parenta035bde3320a501720ae722dc6b54fe7ff5c8647 (diff)
downloadpython-coveragepy-git-d02be78c3a0ee3022be56c623bb9bdcad1e9acd4.tar.gz
style: fix long lines and avoid backslashesnedbat/unittest2pytest
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 12ce7c1e..f53de4fb 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -1050,8 +1050,8 @@ class DynamicContextPluginTest(CoverageTest):
# Labeled coverage is collected
data = cov.get_data()
filenames = self.get_measured_filenames(data)
- assert ['', 'doctest:HTML_TAG', 'test:HTML_TAG', 'test:RENDERERS'] == \
- sorted(data.measured_contexts())
+ expected = ['', 'doctest:HTML_TAG', 'test:HTML_TAG', 'test:RENDERERS']
+ assert expected == sorted(data.measured_contexts())
data.set_query_context("doctest:HTML_TAG")
assert [2] == data.lines(filenames['rendering.py'])
data.set_query_context("test:HTML_TAG")