Skip to content

Commit

Permalink
Slightly change test, so that we are sure about the correct distribut…
Browse files Browse the repository at this point in the history
…ion being found
  • Loading branch information
abravalheri committed Feb 26, 2025
1 parent 23b73aa commit a3718c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg_resources/tests/test_pkg_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
""",
}

Expand All @@ -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):
Expand Down

0 comments on commit a3718c8

Please sign in to comment.