Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2023
1 parent c6121a9 commit 01537ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/version/test_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def test_multi_marker_intersect_multi_with_overlapping_constraints() -> None:
' "Windows"'
)


def test_multi_marker_intersect_with_union_drops_union() -> None:
m = parse_marker('python_version >= "3" and python_version < "4"')
m2 = parse_marker('python_version < "2" or python_version >= "3"')
Expand Down Expand Up @@ -911,8 +912,13 @@ def test_parse_version_like_markers(marker: str, env: dict[str, str]) -> None:

assert m.validate(env)


def test_environment_markers() -> None:
parse_marker('platform_release == "3.14.1-x86_64-linode39" or platform_release == "14.5.0" or platform_release == "1.8.0_51"')
parse_marker(
'platform_release == "3.14.1-x86_64-linode39" or platform_release == "14.5.0"'
' or platform_release == "1.8.0_51"'
)


@pytest.mark.parametrize(
"marker, expected",
Expand Down

0 comments on commit 01537ec

Please sign in to comment.