fix tests for 3.9 and 3.10

This commit is contained in:
Frost Ming
2021-11-05 14:45:37 +08:00
parent e06d9e0287
commit 88df069d68
4 changed files with 20 additions and 3 deletions
Generated
+15
View File
@@ -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",
+2
View File
@@ -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):
"""
+2 -2
View File
@@ -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"]