diff --git a/tests/packages/test_dependency.py b/tests/packages/test_dependency.py index cbcc7d484..a29903edb 100644 --- a/tests/packages/test_dependency.py +++ b/tests/packages/test_dependency.py @@ -298,3 +298,10 @@ def test_marker_properly_sets_python_constraint(): dependency.marker = 'python_version >= "3.6" and python_version < "4.0"' assert str(dependency.python_constraint) == ">=3.6,<4.0" + + +def test_dependency_markers_are_the_same_as_markers(): + marker = parse_marker('extra=="bar"') + dependency = Dependency.create_from_pep_508('foo ; extra=="bar"') + + assert marker == dependency.marker