diff --git a/tests/version/test_markers.py b/tests/version/test_markers.py index 98536e4e2c7..e87caf9a476 100644 --- a/tests/version/test_markers.py +++ b/tests/version/test_markers.py @@ -353,33 +353,33 @@ def test_marker_union_union_duplicates(): 'sys_platform == "darwin" or python_version <= "3.6" or os_name == "Windows"' ) + def test_marker_union_all_any(): - union = MarkerUnion( - parse_marker(""), - parse_marker(""), - ) + union = MarkerUnion(parse_marker(""), parse_marker(""),) assert union.is_any() + def test_marker_union_all_any(): - union = MarkerUnion( - parse_marker(""), - parse_marker(""), - ) + union = MarkerUnion(parse_marker(""), parse_marker(""),) assert union.is_empty() + def test_marker_str_conversion_skips_empty_and_any(): union = MarkerUnion( parse_marker(""), - parse_marker('sys_platform == "darwin" or python_version <= "3.6" or os_name == "Windows"'), - parse_marker('') + parse_marker( + 'sys_platform == "darwin" or python_version <= "3.6" or os_name == "Windows"' + ), + parse_marker(""), ) assert str(union) == ( 'sys_platform == "darwin" or python_version <= "3.6" or os_name == "Windows"' ) + def test_intersect_compacts_constraints(): m = parse_marker('python_version < "4.0"')