From d5771b9921e9dc5ee3de68625ebe9f9a5ba2e999 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 24 Jul 2016 22:13:02 -0400 Subject: Compensate for setuptools 25.0.0 seemingly doing sys.path differently --- tests/modules/process_test/try_execfile.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/modules/process_test/try_execfile.py') diff --git a/tests/modules/process_test/try_execfile.py b/tests/modules/process_test/try_execfile.py index 70905071..bc412fc5 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__ -- cgit v1.2.1