dev-python/colorama: run tests with 'script' to make stdout a TTY

Package-Manager: Portage-2.3.48, Repoman-2.3.10
This commit is contained in:
Louis Sautier
2018-08-22 11:05:51 +02:00
parent bd4e2c022d
commit 870b8bb277

View 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}"
}