From 3962f3ab5646c1c4cffe49cba1e8d81d38703682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 23 Aug 2020 11:23:53 +0200 Subject: [PATCH] c: is a valid URI scheme --- tests/test_requirements.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_requirements.py b/tests/test_requirements.py index 1e8fedaf..7f13aff1 100644 --- a/tests/test_requirements.py +++ b/tests/test_requirements.py @@ -104,7 +104,7 @@ def test_url_and_marker(self): @pytest.mark.parametrize( "invalid_url", - ["/foo/bar", "/foo", "./foo/bar", "./foo", "foo", "c:\\foo\\bar", "c:\\foo"], + ["/foo/bar", "/foo", "./foo/bar", "./foo", "foo"], ) def test_invalid_url(self, invalid_url): with pytest.raises(InvalidRequirement) as e: @@ -130,7 +130,9 @@ def test_vcs_url(self): req = Requirement("name @ git+file:///data/repo") self._assert_requirement(req, "name", "git+file:///data/repo") - @pytest.mark.parametrize("url", ["gopher:/foo/com", "mailto:me@example.com"]) + @pytest.mark.parametrize( + "url", ["gopher:/foo/com", "mailto:me@example.com", "c:/foo/bar"] + ) def test_exotic_urls(self, url): req = Requirement("name @ " + url) self._assert_requirement(req, "name", url)