Skip to content

Commit

Permalink
Update tests for latest PyPy 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 5, 2024
1 parent a699289 commit 9f15537
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,10 @@ def test_hpy_pypy():
distro = distributions.get_distribution("hpy")
assert distro.name == "hpy"

if sys.implementation.name == "pypy":
if sys.implementation.name == "pypy" and sys.version_info < (3, 9):
assert distro.version == Version("0.0.0")
elif sys.implementation.name == "pypy":
assert distro.version == Version("0.9.0")
else:
assert distro.version == Version("0.0.3")

Expand All @@ -518,7 +520,7 @@ def test_cffi_pypy():
distro = distributions.get_distribution("cffi")
assert distro.name == "cffi"

if sys.implementation.name == "pypy":
if sys.implementation.name == "pypy" and sys.version_info < (3, 9):
assert distro.version == Version("0.0.0")
# else:
# assert distro.version == Version("0.0.3")
Expand Down

0 comments on commit 9f15537

Please sign in to comment.