summaryrefslogtreecommitdiff
path: root/tests/test_data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-10 11:58:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-10 11:58:26 -0400
commite54b7576a35b3dd4642788cff557a2ccebf7582b (patch)
tree3369a7d4372a1d20ec100a05d7f732184b2e86b6 /tests/test_data.py
parent036baa78a006c061862ed2e16db51a2f8be7b29e (diff)
downloadpython-coveragepy-git-e54b7576a35b3dd4642788cff557a2ccebf7582b.tar.gz
refactor: no need for maybe-u prefixes in test regexes
That was for Python 2, which we don't support anymore.
Diffstat (limited to 'tests/test_data.py')
-rw-r--r--tests/test_data.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_data.py b/tests/test_data.py
index 86b3870e..a1689ad6 100644
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -314,7 +314,7 @@ class CoverageDataTest(CoverageTest):
covdata.add_lines({"p1.foo": dict.fromkeys([1, 2, 3])})
covdata.add_file_tracers({"p1.foo": "p1.plugin"})
- msg = "Conflicting file tracer name for 'p1.foo': u?'p1.plugin' vs u?'p1.plugin.foo'"
+ msg = "Conflicting file tracer name for 'p1.foo': 'p1.plugin' vs 'p1.plugin.foo'"
with pytest.raises(CoverageException, match=msg):
covdata.add_file_tracers({"p1.foo": "p1.plugin.foo"})
@@ -401,11 +401,11 @@ class CoverageDataTest(CoverageTest):
covdata2.add_lines({"p1.html": dict.fromkeys([1, 2, 3])})
covdata2.add_file_tracers({"p1.html": "html.other_plugin"})
- msg = "Conflicting file tracer name for 'p1.html': u?'html.plugin' vs u?'html.other_plugin'"
+ msg = "Conflicting file tracer name for 'p1.html': 'html.plugin' vs 'html.other_plugin'"
with pytest.raises(CoverageException, match=msg):
covdata1.update(covdata2)
- msg = "Conflicting file tracer name for 'p1.html': u?'html.other_plugin' vs u?'html.plugin'"
+ msg = "Conflicting file tracer name for 'p1.html': 'html.other_plugin' vs 'html.plugin'"
with pytest.raises(CoverageException, match=msg):
covdata2.update(covdata1)
@@ -417,11 +417,11 @@ class CoverageDataTest(CoverageTest):
covdata2 = DebugCoverageData(suffix="2")
covdata2.add_lines({"p1.html": dict.fromkeys([1, 2, 3])})
- msg = "Conflicting file tracer name for 'p1.html': u?'html.plugin' vs u?''"
+ msg = "Conflicting file tracer name for 'p1.html': 'html.plugin' vs ''"
with pytest.raises(CoverageException, match=msg):
covdata1.update(covdata2)
- msg = "Conflicting file tracer name for 'p1.html': u?'' vs u?'html.plugin'"
+ msg = "Conflicting file tracer name for 'p1.html': '' vs 'html.plugin'"
with pytest.raises(CoverageException, match=msg):
covdata2.update(covdata1)