diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-19 19:18:49 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-19 19:18:49 +0200 |
commit | d847af4232d5c7ac3965a493732a9d9fd76a37e5 (patch) | |
tree | e07f21aed7c4095cb256291f92c29e41307682d8 /tests | |
parent | release: cleaner and cross support (diff) | |
download | pkgcheck-d847af4232d5c7ac3965a493732a9d9fd76a37e5.tar.gz pkgcheck-d847af4232d5c7ac3965a493732a9d9fd76a37e5.tar.bz2 pkgcheck-d847af4232d5c7ac3965a493732a9d9fd76a37e5.zip |
tests/scripts/test_pkgcheck_scan.py: fix NOCOLOR test
Fix the test for systems which predefine NOCOLOR, like in case of ebuild
test environment (by epytest).
Follows: d77990efa1b8a2151471e8e112b36b048b25ea54
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgcheck_scan.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/scripts/test_pkgcheck_scan.py b/tests/scripts/test_pkgcheck_scan.py index 6c1600f8..c224d83a 100644 --- a/tests/scripts/test_pkgcheck_scan.py +++ b/tests/scripts/test_pkgcheck_scan.py @@ -271,7 +271,8 @@ class TestPkgcheckScanParseArgs: ''')) args = ('scan', '--config', str(config_file)) - assert parser.parse_args(args).color is True + with os_environ('NOCOLOR'): + assert parser.parse_args(args).color is True with os_environ(NOCOLOR='1'): # NOCOLOR overrides config file assert parser.parse_args(args).color is False |