summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-07-24 22:13:02 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-07-24 22:13:02 -0400
commita2ece004e891e7b1fb9170f8732459798a3912c8 (patch)
tree1643672f1fd3b70e71c97548f87f2dcb3918c758
parent2f9e2bec60fa1a8f66b34c6c37fdfcf6010fe354 (diff)
downloadpython-coveragepy-a2ece004e891e7b1fb9170f8732459798a3912c8.tar.gz
Compensate for setuptools 25.0.0 seemingly doing sys.path differently
-rw-r--r--tests/modules/process_test/try_execfile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/modules/process_test/try_execfile.py b/tests/modules/process_test/try_execfile.py
index 7090507..bc412fc 100644
--- a/tests/modules/process_test/try_execfile.py
+++ b/tests/modules/process_test/try_execfile.py
@@ -52,6 +52,11 @@ def without_same_files(filenames):
cleaned_sys_path = [os.path.normcase(p) for p in without_same_files(sys.path)]
+# Eggs seems to go in different places for some reason. I'm going to assume
+# it's an OK difference. Sort eggs to the end of the list to canonicalize
+# them.
+cleaned_sys_path = sorted(cleaned_sys_path, key=lambda p: p.endswith(".egg"))
+
DATA = "xyzzy"
import __main__