use another version

This commit is contained in:
Frost Ming
2019-08-03 16:54:44 +08:00
parent c3b4c410fa
commit 2dc8d0a070
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ def test_pipenv_outdated_prerelease(PipenvInstance):
with open(p.pipfile_path, "w") as f:
contents = """
[packages]
sqlalchemy = "<1.2.4"
sqlalchemy = "<=1.2.3"
""".strip()
f.write(contents)
c = p.pipenv('update --pre --outdated')
+2 -2
View File
@@ -479,8 +479,8 @@ extras = ["socks"]
@pytest.mark.install
def test_install_prerelease(PipenvInstance):
with PipenvInstance(chdir=True) as p:
c = p.pipenv("install 'sqlalchemy<1.2.4'")
c = p.pipenv("install 'sqlalchemy<=1.2.3'")
assert c.return_code != 0
c = p.pipenv("install --pre 'sqlalchemy<1.2.4'")
c = p.pipenv("install --pre 'sqlalchemy<=1.2.3'")
assert c.return_code == 0
assert p.lockfile["default"]["sqlalchemy"]["version"] == "1.2.0b3"