Skip to content

Commit 553d6f2

Browse files
authored
Fix CI due to latest pip output change (tox-dev#1579)
1 parent 4167e67 commit 553d6f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/unit/test_z_cmdline.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ def test_venv_special_chars_issue252(cmd, initproj):
337337
)
338338
result = cmd()
339339
result.assert_success()
340-
pattern = re.compile("special&&1 installed: .*pkg123==0.7.*")
341-
assert any(pattern.match(line) for line in result.outlines), result.outlines
340+
pattern = re.compile("special&&1 installed: .*pkg123 @ .*-0.7.zip.*")
341+
assert any(pattern.match(line) for line in result.outlines), "\n".join(result.outlines)
342342

343343

344344
def test_unknown_environment(cmd, initproj):

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ envlist = py27,
1111
fix_lint,
1212
docs,
1313
package_description
14-
minversion = 3.7
14+
minversion = 3.12
1515
isolated_build = true
1616
skip_missing_interpreters = true
1717

@@ -20,6 +20,7 @@ description = run the tests with pytest under {basepython}
2020
setenv =
2121
PIP_DISABLE_PIP_VERSION_CHECK = 1
2222
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
23+
{py27,pypy}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
2324
passenv =
2425
CURL_CA_BUNDLE
2526
http_proxy
@@ -30,7 +31,7 @@ passenv =
3031
PYTEST_*
3132
PIP_CACHE_DIR
3233
deps =
33-
pip >= 19.3.1
34+
pip >= 20.1
3435
extras = testing
3536
commands = pytest \
3637
--cov "{envsitepackagesdir}/tox" \

0 commit comments

Comments
 (0)