diff --git a/tests/packages/test_dependency.py b/tests/packages/test_dependency.py index cbcc7d484..0dc493274 100644 --- a/tests/packages/test_dependency.py +++ b/tests/packages/test_dependency.py @@ -298,3 +298,13 @@ 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_marker_properly_unsets_python_constraint(): + dependency = Dependency("foo", "^1.2.3") + + dependency.marker = 'python_version >= "3.6"' + assert str(dependency.python_constraint) == ">=3.6,<4.0" + + dependency.marker = "*" + assert str(dependency.python_constraint) == "*"