diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2019-09-11 18:07:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 18:07:45 +0100 |
commit | b3ef77b2085dc8d66d178a2f7d2047a9ca207309 (patch) | |
tree | 59b29ad80ec61296572c53e38443fa91d71dd8bf /setuptools/command/test.py | |
parent | 7f7780e5b572d6fcacd63bf99389dd9f48c5345c (diff) | |
parent | cb64d3a84fab15aacbdf31a0a5632690ca9f49b2 (diff) | |
download | external_python_setuptools-b3ef77b2085dc8d66d178a2f7d2047a9ca207309.tar.gz external_python_setuptools-b3ef77b2085dc8d66d178a2f7d2047a9ca207309.tar.bz2 external_python_setuptools-b3ef77b2085dc8d66d178a2f7d2047a9ca207309.zip |
Merge branch 'master' into feature/deterministic-provides-extras
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r-- | setuptools/command/test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py index dde0118c..973e4eb2 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -15,6 +15,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 __metaclass__ = type @@ -186,7 +187,7 @@ class test(Command): orig_pythonpath = os.environ.get('PYTHONPATH', nothing) current_pythonpath = os.environ.get('PYTHONPATH', '') try: - prefix = os.pathsep.join(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: |