Skip to content

Commit d382e55

Browse files
committed
Fix test to account for non-final releases.
1 parent d8feefd commit d382e55

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_placeholder.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ def test_substitute_markers(env) -> None:
5151
== current_markers["python_version"]
5252
== substitute(env, "{markers.python_version}")
5353
)
54-
assert (
55-
".".join(map(str, sys.version_info[:3]))
56-
== current_markers["python_full_version"]
57-
== substitute(env, "{markers.python_full_version}")
58-
)
54+
if ("final", 0) == sys.version_info[3:]:
55+
assert (
56+
".".join(map(str, sys.version_info[:3]))
57+
== current_markers["python_full_version"]
58+
== substitute(env, "{markers.python_full_version}")
59+
)
5960

6061
with pytest.raises(
6162
ValueError, match=re.escape("There is no Python environment marker named 'bob'.")

0 commit comments

Comments
 (0)