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 64f0f05 commit 47fb3b2
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,9 +912,14 @@ def test_parse_version_like_markers(marker: str, env: dict[str, str]) -> None:

assert m.validate(env)


def test_environment_markers() -> None:
# These are the platform_release markers given as examples in PEP-508
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 47fb3b2

Please sign in to comment.