From dc74d85cfbd81b6d87b9560781df679120a4cf9d Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 28 Jul 2023 13:57:06 +0100 Subject: [PATCH] better error messages --- tests/parse_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/parse_metadata.py b/tests/parse_metadata.py index f44d6a81e9f4..483eb034c231 100644 --- a/tests/parse_metadata.py +++ b/tests/parse_metadata.py @@ -202,8 +202,8 @@ def read_metadata(distribution: str) -> StubMetadata: assert isinstance(upstream_repository, (str, type(None))) if isinstance(upstream_repository, str): parsed_url = urllib.parse.urlsplit(upstream_repository) - assert parsed_url.scheme == "https", "URLs in the upstream_repository key should use https" - assert not parsed_url.netloc.startswith("www."), "`www.` should be removed from URLs in the upstream_repository key" + assert parsed_url.scheme == "https", "URLs in the upstream_repository field should use https" + assert not parsed_url.netloc.startswith("www."), "`www.` should be removed from URLs in the upstream_repository field" assert not parsed_url.query assert not parsed_url.fragment if parsed_url.netloc == "github.com":