Skip to content

Commit d5f8730

Browse files
committed
Add tests for pypy_tags()
1 parent 4494b1c commit d5f8730

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_tags.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,3 +755,12 @@ def test_cpython_tags_skip_redundant_abis(abis):
755755
results = list(tags.cpython_tags((3, 0), abis=abis, platforms=["any"]))
756756
assert results == [tags.Tag("cp30", "abi3", "any"), tags.Tag("cp30", "none", "any")]
757757

758+
759+
def test_pypy_tags(monkeypatch):
760+
monkeypatch.setattr(tags, "_pypy_interpreter", lambda: "pp370")
761+
result = list(tags.pypy_tags(abis=["pp370"], platforms=["plat1"]))
762+
assert result == [
763+
tags.Tag("pp370", "pp370", "plat1"),
764+
tags.Tag("pp370", "none", "plat1"),
765+
]
766+

0 commit comments

Comments
 (0)