From a3718c8099235fb3b40d013f97530d5aeb5ba0ce Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Wed, 26 Feb 2025 17:07:20 +0000 Subject: [PATCH] Slightly change test, so that we are sure about the correct distribution being found --- pkg_resources/tests/test_pkg_resources.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index c749128449..2d54cfb5ce 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -453,11 +453,11 @@ def fake_site_packages(self, tmp_path, monkeypatch, dist_files): """, "pkg3_mod.egg-info/PKG-INFO": """ Name: pkg3.mod - Version: 1.2.3 + Version: 1.2.3.4 """, "pkg4.mod.egg-info/PKG-INFO": """ Name: pkg4.mod - Version: 0.42 + Version: 0.42.1 """, } @@ -466,8 +466,8 @@ def fake_site_packages(self, tmp_path, monkeypatch, dist_files): [ ("pkg1.mod", "1.2.3", "pkg1.mod>=1"), ("pkg2.mod", "0.42", "pkg2.mod>=0.4"), - ("pkg3.mod", "1.2.3", "pkg3.mod<=2"), - ("pkg4.mod", "0.42", "pkg4.mod>0.2,<1"), + ("pkg3.mod", "1.2.3.4", "pkg3.mod<=2"), + ("pkg4.mod", "0.42.1", "pkg4.mod>0.2,<1"), ], ) def test_require_normalised_name(self, tmp_path, monkeypatch, name, version, req):