summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMiro HronĨok <miro@hroncok.cz>2020-06-02 20:09:46 +0200
committerGitHub <noreply@github.com>2020-06-02 11:09:46 -0700
commita421aeb75cc019cfc53bb8903d5e442f34bcc632 (patch)
treed3700d871559a95b95a3f3ff43d5a0fcefce06e2 /tests
parentdd0bb805b54c25be2e7f73f2c06b41aafa29de54 (diff)
downloadtox-git-a421aeb75cc019cfc53bb8903d5e442f34bcc632.tar.gz
Allow both pre- and post- PEP 610 outputs in test_venv_special_chars_issue252 (#1594)
pip 20.1+ supports PEP 610 https://www.python.org/dev/peps/pep-0610/ Hence the output is changed a bit. This was acknowledged in 553d6f282119481cbd4cf2a78e633eb8b506659e. Here we allow to run the tests with pip 19.3.x again by relaxing the regex to match both the old and the new format.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_z_cmdline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_z_cmdline.py b/tests/unit/test_z_cmdline.py
index 291ef446..7f3b816d 100644
--- a/tests/unit/test_z_cmdline.py
+++ b/tests/unit/test_z_cmdline.py
@@ -337,7 +337,7 @@ def test_venv_special_chars_issue252(cmd, initproj):
)
result = cmd()
result.assert_success()
- pattern = re.compile("special&&1 installed: .*pkg123 @ .*-0.7.zip.*")
+ pattern = re.compile(r"special&&1 installed: .*pkg123( @ .*-|==)0\.7(\.zip)?.*")
assert any(pattern.match(line) for line in result.outlines), "\n".join(result.outlines)