diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2019-01-31 21:59:57 -0500 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2019-01-31 22:06:25 -0500 |
commit | 02ef06e5805499f75664bf97044aa035ba5ef770 (patch) | |
tree | 1a0e0f4669cced9b6819b2eb144980a92678b76a /dev-python | |
parent | dev-python/pyotherside: bump to 1.5.4 (diff) | |
download | gentoo-02ef06e5805499f75664bf97044aa035ba5ef770.tar.gz gentoo-02ef06e5805499f75664bf97044aa035ba5ef770.tar.bz2 gentoo-02ef06e5805499f75664bf97044aa035ba5ef770.zip |
dev-python/astroid: fix tests on py37
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/astroid/astroid-2.1.0.ebuild | 6 | ||||
-rw-r--r-- | dev-python/astroid/files/astroid-2.1.0-fix-tests.patch | 16 |
2 files changed, 21 insertions, 1 deletions
diff --git a/dev-python/astroid/astroid-2.1.0.ebuild b/dev-python/astroid/astroid-2.1.0.ebuild index 34044e6fa016..b23580f18162 100644 --- a/dev-python/astroid/astroid-2.1.0.ebuild +++ b/dev-python/astroid/astroid-2.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -32,6 +32,10 @@ DEPEND=" dev-python/python-dateutil[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}/${PN}-2.1.0-fix-tests.patch" +) + python_prepare_all() { # Disable failing tests diff --git a/dev-python/astroid/files/astroid-2.1.0-fix-tests.patch b/dev-python/astroid/files/astroid-2.1.0-fix-tests.patch new file mode 100644 index 000000000000..32e75225507b --- /dev/null +++ b/dev-python/astroid/files/astroid-2.1.0-fix-tests.patch @@ -0,0 +1,16 @@ +typed_ast doesn't support py37 yet and disables its support under py37. +However, when dev-python/types-ast is installed, the test suite mistakenly +thinks that it has to test typed_ast-related things and fails. +diff --git a/astroid/tests/unittest_nodes.py b/astroid/tests/unittest_nodes.py +index 56b195c2..762f1af2 100644 +--- a/astroid/tests/unittest_nodes.py ++++ b/astroid/tests/unittest_nodes.py +@@ -49,6 +49,8 @@ try: + except ImportError: + HAS_TYPED_AST = False + ++if sys.version_info[:2] >= (3, 7): ++ HAS_TYPED_AST = False + + class AsStringTest(resources.SysPathSetup, unittest.TestCase): + def test_tuple_as_string(self): |