From 88df069d68d054e9aafaae6339c5d23701273fda Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Fri, 5 Nov 2021 14:45:37 +0800 Subject: [PATCH] fix tests for 3.9 and 3.10 --- Pipfile.lock | 15 +++++++++++++++ tests/integration/test_lock.py | 2 ++ tests/integration/test_uninstall.py | 4 ++-- tests/test_artifacts/git/flask | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index 78cc431e..29363c2d 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -22,6 +22,13 @@ ], "version": "==0.7.12" }, + "appdirs": { + "hashes": [ + "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41", + "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128" + ], + "version": "==1.4.4" + }, "arpeggio": { "hashes": [ "sha256:bfe349f252f82f82d84cb886f1d5081d1a31451e6045275e9f90b65d0daa06f1", @@ -29,6 +36,14 @@ ], "version": "==1.10.2" }, + "atomicwrites": { + "hashes": [ + "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197", + "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.4.0" + }, "attrs": { "hashes": [ "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1", diff --git a/tests/integration/test_lock.py b/tests/integration/test_lock.py index d9f70aff..10d97b39 100644 --- a/tests/integration/test_lock.py +++ b/tests/integration/test_lock.py @@ -401,6 +401,7 @@ fake-package = "*" @pytest.mark.lock @pytest.mark.install @pytest.mark.skip_windows +@pytest.mark.skipif(sys.version >= (3, 9), reason="old setuptools doesn't work") @pytest.mark.needs_internet def test_outdated_setuptools_with_pep517_legacy_build_meta_is_updated(PipenvInstance): """ @@ -429,6 +430,7 @@ def test_outdated_setuptools_with_pep517_legacy_build_meta_is_updated(PipenvInst @pytest.mark.lock @pytest.mark.install @pytest.mark.skip_windows +@pytest.mark.skipif(sys.version >= (3, 9), reason="old setuptools doesn't work") @pytest.mark.needs_internet def test_outdated_setuptools_with_pep517_cython_import_in_setuppy(PipenvInstance): """ diff --git a/tests/integration/test_uninstall.py b/tests/integration/test_uninstall.py index 25dd7f5e..8ecc56f6 100644 --- a/tests/integration/test_uninstall.py +++ b/tests/integration/test_uninstall.py @@ -32,7 +32,7 @@ def test_uninstall_requests(PipenvInstance): @pytest.mark.uninstall def test_uninstall_django(PipenvInstance): with PipenvInstance() as p: - c = p.pipenv("install Django==1.11.13") + c = p.pipenv("install Django") assert c.returncode == 0 assert "django" in p.pipfile["packages"] assert "django" in p.lockfile["default"] @@ -61,7 +61,7 @@ def test_mirror_uninstall(PipenvInstance): ) assert "pypi.org" not in mirror_url - c = p.pipenv(f"install Django==1.11.13 --pypi-mirror {mirror_url}") + c = p.pipenv(f"install Django --pypi-mirror {mirror_url}") assert c.returncode == 0 assert "django" in p.pipfile["packages"] assert "django" in p.lockfile["default"] diff --git a/tests/test_artifacts/git/flask b/tests/test_artifacts/git/flask index dcc02d6e..1b4ace9b 160000 --- a/tests/test_artifacts/git/flask +++ b/tests/test_artifacts/git/flask @@ -1 +1 @@ -Subproject commit dcc02d6e7d4bf486e64aa5b6e55a75501c2ba2e5 +Subproject commit 1b4ace9ba5e77679bf9d8e409283654f7589907e