summaryrefslogtreecommitdiff
path: root/tests/test_goldtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-28 06:59:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-28 06:59:03 -0400
commit81a55d102550b4535191756960f6846083fc7e30 (patch)
tree0f61064078496ac483e5d03b23800e2f1b95513a /tests/test_goldtest.py
parente36475a387b734711fbbe84c0fe4b6d0777cd9ec (diff)
downloadpython-coveragepy-git-81a55d102550b4535191756960f6846083fc7e30.tar.gz
refactor(test): make re_lines (et al) look like re.search
and also replace some calls with just-plain re.search.
Diffstat (limited to 'tests/test_goldtest.py')
-rw-r--r--tests/test_goldtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_goldtest.py b/tests/test_goldtest.py
index 5086fa15..73e0e188 100644
--- a/tests/test_goldtest.py
+++ b/tests/test_goldtest.py
@@ -69,8 +69,8 @@ class CompareTest(CoverageTest):
stdout = self.stdout()
assert "- Four score" in stdout
assert "+ Five score" in stdout
- assert re_line(stdout, rf"^:::: diff '.*{GOLD_PATH_RX}' and '{OUT_PATH_RX}'")
- assert re_line(stdout, rf"^:::: end diff '.*{GOLD_PATH_RX}' and '{OUT_PATH_RX}'")
+ assert re_line(rf"^:::: diff '.*{GOLD_PATH_RX}' and '{OUT_PATH_RX}'", stdout)
+ assert re_line(rf"^:::: end diff '.*{GOLD_PATH_RX}' and '{OUT_PATH_RX}'", stdout)
assert " D/D/D, Gxxx, Pennsylvania" in stdout
# The actual file was saved.