Skip to content

Commit 8280e2c

Browse files
committed
Attempt to solve path normalisation issue in windows tests
1 parent a3718c8 commit 8280e2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg_resources/tests/test_pkg_resources.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,6 @@ def test_require_normalised_name(self, tmp_path, monkeypatch, name, version, req
477477

478478
[dist] = ws.require(req)
479479
assert dist.version == version
480-
assert os.path.commonpath([dist.location, site_packages]) == site_packages
480+
assert os.path.samefile(
481+
os.path.commonpath([dist.location, site_packages]), site_packages
482+
)

0 commit comments

Comments
 (0)