From 7b0f23210e2dd867c9710bf11c624f846bad7369 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 18 Nov 2024 11:50:22 +0000 Subject: [PATCH] tests: ignore case of PyYAML tarball The latest release uses the name pyyaml-6.0.2.tar.gz --- tests/test_pypichecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pypichecker.py b/tests/test_pypichecker.py index f985af05..ff0278aa 100644 --- a/tests/test_pypichecker.py +++ b/tests/test_pypichecker.py @@ -38,7 +38,7 @@ async def test_check(self): elif data.filename == "PyYAML-5.3.1.tar.gz": self.assertRegex( data.new_version.url, - r"https://files.pythonhosted.org/packages/[a-f0-9/]+/PyYAML-[\d\.]+.(tar.(gz|xz|bz2)|zip)", # noqa: E501 + r"https://files.pythonhosted.org/packages/[a-f0-9/]+/(?i:PyYAML-)[\d\.]+.(tar.(gz|xz|bz2)|zip)", # noqa: E501 ) elif data.filename == "vdf-3.1-py2.py3-none-any.whl": self.assertRegex(