diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-24 22:13:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-24 22:13:02 -0400 |
commit | d5771b9921e9dc5ee3de68625ebe9f9a5ba2e999 (patch) | |
tree | 8ac57ce7497a59b4317a037efd9733905ad3a19b | |
parent | 9ca201f512d16e542f8cd4e8b83f87fe1beac4d5 (diff) | |
download | python-coveragepy-git-d5771b9921e9dc5ee3de68625ebe9f9a5ba2e999.tar.gz |
Compensate for setuptools 25.0.0 seemingly doing sys.path differently
-rw-r--r-- | tests/modules/process_test/try_execfile.py | 5 |
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 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__ |