summaryrefslogtreecommitdiff
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-05-22 19:19:05 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-05-22 19:19:05 -0400
commit9c2cf25a13bf33a3fd706c97064c0d2fa22be179 (patch)
treec304c7604a18029b4fdff76f97a38b9bbdd6edf0 /setuptools/command/test.py
parent28f4890f20704e8aa0248843fef703883bdea544 (diff)
downloadpython-setuptools-git-9c2cf25a13bf33a3fd706c97064c0d2fa22be179.tar.gz
Use unique_everseen from more_itertools.
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index cf71ad01..de4f3d11 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -12,7 +12,7 @@ from pkg_resources import (resource_listdir, resource_exists, normalize_path,
working_set, _namespace_packages, evaluate_marker,
add_activation_listener, require, EntryPoint)
from setuptools import Command
-from .build_py import _unique_everseen
+from setuptools.extern.more_itertools import unique_everseen
class ScanningLoader(TestLoader):
@@ -182,7 +182,7 @@ class test(Command):
orig_pythonpath = os.environ.get('PYTHONPATH', nothing)
current_pythonpath = os.environ.get('PYTHONPATH', '')
try:
- prefix = os.pathsep.join(_unique_everseen(paths))
+ prefix = os.pathsep.join(unique_everseen(paths))
to_join = filter(None, [prefix, current_pythonpath])
new_path = os.pathsep.join(to_join)
if new_path: