diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-python/astunparse/files/astunparse-1.6.2-tests.patch | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-python/astunparse/files/astunparse-1.6.2-tests.patch')
-rw-r--r-- | dev-python/astunparse/files/astunparse-1.6.2-tests.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/astunparse/files/astunparse-1.6.2-tests.patch b/dev-python/astunparse/files/astunparse-1.6.2-tests.patch new file mode 100644 index 000000000000..b82c22831a9b --- /dev/null +++ b/dev-python/astunparse/files/astunparse-1.6.2-tests.patch @@ -0,0 +1,23 @@ +diff --git a/tests/common.py b/tests/common.py +index 95b9755..41123de 100644 +--- a/tests/common.py ++++ b/tests/common.py +@@ -1,6 +1,7 @@ + import codecs + import os + import sys ++import site + if sys.version_info < (2, 7): + import unittest2 as unittest + else: +@@ -175,9 +176,7 @@ class AstunparseCommonTestCase: + def check_roundtrip(self, code1, filename="internal", mode="exec"): + raise NotImplementedError() + +- test_directories = [ +- os.path.join(getattr(sys, 'real_prefix', sys.prefix), +- 'lib', 'python%s.%s' % sys.version_info[:2])] ++ test_directories = [os.path.dirname(d) for d in site.getsitepackages()] + + def test_files(self): + names = [] |