From 3a5a7f33320d88363be18776a2076a19e600a593 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 11 Dec 2022 15:25:34 -0500 Subject: [PATCH] try to restore color to pytest the problem here is that the color codes will come out in jenkins runs. see if jenkins maybe does something with that (filters or maybe even gives us color) Change-Id: I9c8660fa85fb216cae16e18b776f34b005d3ac51 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c9a769f3..8b744d7c 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ usedevelop= # only use --dropfirst option if we're *not* using -n; # if -n is used, we're working in brand new DBs anyway setenv= - BASECOMMAND=python -m pytest --rootdir {toxinidir} + BASECOMMAND=python -m pytest {tty:--color=yes} --rootdir {toxinidir} WORKERS={env:TOX_WORKERS:-n4} sqla079: WORKERS=--dropfirst cov: COVERAGE={[testenv]cov_args} -- 2.47.2