From 553d6f282119481cbd4cf2a78e633eb8b506659e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 11 May 2020 12:15:24 +0100 Subject: Fix CI due to latest pip output change (#1579) --- tests/unit/test_z_cmdline.py | 4 ++-- tox.ini | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_z_cmdline.py b/tests/unit/test_z_cmdline.py index e809f1d7..3a2b336c 100644 --- a/tests/unit/test_z_cmdline.py +++ b/tests/unit/test_z_cmdline.py @@ -337,8 +337,8 @@ def test_venv_special_chars_issue252(cmd, initproj): ) result = cmd() result.assert_success() - pattern = re.compile("special&&1 installed: .*pkg123==0.7.*") - assert any(pattern.match(line) for line in result.outlines), result.outlines + pattern = re.compile("special&&1 installed: .*pkg123 @ .*-0.7.zip.*") + assert any(pattern.match(line) for line in result.outlines), "\n".join(result.outlines) def test_unknown_environment(cmd, initproj): diff --git a/tox.ini b/tox.ini index 207d1fe3..1421335c 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ envlist = py27, fix_lint, docs, package_description -minversion = 3.7 +minversion = 3.12 isolated_build = true skip_missing_interpreters = true @@ -20,6 +20,7 @@ description = run the tests with pytest under {basepython} setenv = PIP_DISABLE_PIP_VERSION_CHECK = 1 COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} + {py27,pypy}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command passenv = CURL_CA_BUNDLE http_proxy @@ -30,7 +31,7 @@ passenv = PYTEST_* PIP_CACHE_DIR deps = - pip >= 19.3.1 + pip >= 20.1 extras = testing commands = pytest \ --cov "{envsitepackagesdir}/tox" \ -- cgit v1.2.1