summaryrefslogtreecommitdiff
path: root/pkg_resources/tests/test_pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-10 16:18:22 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-10 16:18:22 -0400
commit5638e4783fc0f4f5cc40e7ecfab0500983826fa0 (patch)
treee681fe0fdc04eea980540cc61b398f033a7b3513 /pkg_resources/tests/test_pkg_resources.py
parent7b0a818f9a877d5e1fe558cf1a817bf2034ddf9f (diff)
downloadpython-setuptools-git-5638e4783fc0f4f5cc40e7ecfab0500983826fa0.tar.gz
To assess the directoriness of an entry, include the path of that entry.
Diffstat (limited to 'pkg_resources/tests/test_pkg_resources.py')
-rw-r--r--pkg_resources/tests/test_pkg_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py
index 9991402c..189a8668 100644
--- a/pkg_resources/tests/test_pkg_resources.py
+++ b/pkg_resources/tests/test_pkg_resources.py
@@ -335,7 +335,7 @@ def test_dist_info_is_not_dir(tmp_path, only):
"""Test path containing a file with dist-info extension."""
dist_info = tmp_path / 'foobar.dist-info'
dist_info.touch()
- assert not pkg_resources.dist_factory(None, str(dist_info), only)
+ assert not pkg_resources.dist_factory(str(tmp_path), str(dist_info), only)
class TestDeepVersionLookupDistutils: