Skip to content

Commit

Permalink
Delete print() from test_tags (#668)
Browse files Browse the repository at this point in the history
Co-authored-by: nt120 <76904129+nt120-ic@users.noreply.github.com>
  • Loading branch information
nikodemas and nt120-ic committed Jan 25, 2023
1 parent 1b9da44 commit 67bd518
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_tags.py
Expand Up @@ -234,15 +234,13 @@ def test_version_detection(self, monkeypatch):

platforms = list(tags.mac_platforms(arch="x86_64"))
if (major, minor) == ("10", "16"):
print(platforms, "macosx_11+")
# For 10.16, the real version is at least 11.0.
prefix, major, minor, _ = platforms[0].split("_", maxsplit=3)
assert prefix == "macosx"
assert int(major) >= 11
assert minor == "0"
else:
expected = f"macosx_{major}_{minor}_"
print(platforms, expected)
assert platforms[0].startswith(expected)

def test_version_detection_10_15(self, monkeypatch):
Expand All @@ -252,7 +250,6 @@ def test_version_detection_10_15(self, monkeypatch):
expected = "macosx_10_15_"

platforms = list(tags.mac_platforms(arch="x86_64"))
print(platforms, expected)
assert platforms[0].startswith(expected)

def test_version_detection_compatibility(self, monkeypatch):
Expand All @@ -270,7 +267,6 @@ def test_version_detection_compatibility(self, monkeypatch):
unexpected = "macosx_10_16_"

platforms = list(tags.mac_platforms(arch="x86_64"))
print(platforms, unexpected)
assert not platforms[0].startswith(unexpected)

@pytest.mark.parametrize("arch", ["x86_64", "i386"])
Expand Down

0 comments on commit 67bd518

Please sign in to comment.