diff options
author | Sam James <sam@gentoo.org> | 2022-11-20 06:45:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-20 06:45:12 +0000 |
commit | bd8fab279b57b024101f77363ebdc029b21e51e2 (patch) | |
tree | 34c34143d8e4145f83c82275b8873a2446b85aed /dev-python/terminaltables | |
parent | app-text/xmldiff: enable py3.11 (diff) | |
download | gentoo-bd8fab279b57b024101f77363ebdc029b21e51e2.tar.gz gentoo-bd8fab279b57b024101f77363ebdc029b21e51e2.tar.bz2 gentoo-bd8fab279b57b024101f77363ebdc029b21e51e2.zip |
dev-python/terminaltables: fix tests in some envs; enable py3.11
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/terminaltables')
-rw-r--r-- | dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild | 9 | ||||
-rw-r--r-- | dev-python/terminaltables/terminaltables-9999.ebuild | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild index b08a653b797d..2e78fc2ba3c7 100644 --- a/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild +++ b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 @@ -38,3 +38,10 @@ src_prepare() { distutils-r1_src_prepare } + +python_test() { + # We override FORCE_COLOR otherwise termcolor + # would pick it up from env. and give unexpected + # output for tests. + FORCE_COLOR=1 epytest +} diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild b/dev-python/terminaltables/terminaltables-9999.ebuild index c5cb790fdd38..5b904f1c7220 100644 --- a/dev-python/terminaltables/terminaltables-9999.ebuild +++ b/dev-python/terminaltables/terminaltables-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 git-r3 @@ -32,3 +32,10 @@ src_prepare() { distutils-r1_src_prepare } + +python_test() { + # We override FORCE_COLOR otherwise termcolor + # would pick it up from env. and give unexpected + # output for tests. + FORCE_COLOR=1 epytest +} |