Skip to content

Commit 4d57594

Browse files
committed
fix merge
1 parent 635f315 commit 4d57594

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def _pythons_to_check(
6363
continue
6464
elif tag.interpreter.startswith("py3"):
6565
for py in PYTHONS:
66-
if tag in packaging.tags.compatible_tags(py):
67-
tag_compatible_pythons.add(_py_exe(*py))
66+
if tag not in packaging.tags.compatible_tags(py):
67+
raise AssertionError(f"{tag} is not compatible with python {py}")
68+
tag_compatible_pythons.add(_py_exe(*py))
6869
else:
6970
raise AssertionError(f"unexpected tag: {tag}")
7071

0 commit comments

Comments
 (0)