dev-python/colorama: run tests with 'script' to make stdout a TTY
authorLouis Sautier <sbraz@gentoo.org>
Wed, 22 Aug 2018 09:05:51 +0000 (11:05 +0200)
committerLouis Sautier <sbraz@gentoo.org>
Wed, 22 Aug 2018 15:12:31 +0000 (17:12 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

dev-python/colorama/colorama-0.3.9-r1.ebuild

index 05ea77f60e5f19f68a7ff25b4c6a3d420c06730c..31476d291ca5a3a17958bba339f268840f0771fd 100644 (file)
@@ -36,9 +36,8 @@ python_install_all() {
 }
 
 python_test() {
-       # Skip two tests which seem to fail when stdout isn't a TTY
+       # Some tests require stdout to be a TTY
        # https://github.com/tartley/colorama/issues/169
-       pytest -vv -k "not (testInitDoesntWrapOnEmulatedWindows \
-               or testInitDoesntWrapOnNonWindows)" \
+       script -eqc "pytest -vv -s" /dev/null \
                || die "tests failed with ${EPYTHON}"
 }