From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 884E3158020 for ; Sat, 19 Nov 2022 17:22:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6FF8E0922; Sat, 19 Nov 2022 17:22:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C390AE0922 for ; Sat, 19 Nov 2022 17:22:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1490134122C for ; Sat, 19 Nov 2022 17:22:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E83E523 for ; Sat, 19 Nov 2022 17:22:33 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1668878517.f9c6971a98ed76679e97e08ec25c4ab560921d21.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgdev:main commit in: tests/scripts/ X-VCS-Repository: proj/pkgcore/pkgdev X-VCS-Files: tests/scripts/test_pkgdev_showkw.py X-VCS-Directories: tests/scripts/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: f9c6971a98ed76679e97e08ec25c4ab560921d21 X-VCS-Branch: main Date: Sat, 19 Nov 2022 17:22:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5117eb2a-a0e6-491b-9806-eda15388489c X-Archives-Hash: 4419a892d38fbd7eb59e3c34032379f0 commit: f9c6971a98ed76679e97e08ec25c4ab560921d21 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Nov 19 17:21:57 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Nov 19 17:21:57 2022 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=f9c6971a tests/scripts/test_pkgdev_showkw.py: fix NOCOLOR test Fix the test for systems which predefine NOCOLOR, like in case of ebuild test environment (by epytest). Follows: 9714e4785e1ffc56a08f042011b5a966c7520a1f Signed-off-by: Arthur Zamarin gentoo.org> tests/scripts/test_pkgdev_showkw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/test_pkgdev_showkw.py b/tests/scripts/test_pkgdev_showkw.py index fe06be9..c611484 100644 --- a/tests/scripts/test_pkgdev_showkw.py +++ b/tests/scripts/test_pkgdev_showkw.py @@ -50,7 +50,8 @@ class TestPkgdevShowkwParseArgs: '--config', str(config_file), *args]) return options - assert parse().color is True + with os_environ('NOCOLOR'): + assert parse().color is True with os_environ(NOCOLOR='1'): # NOCOLOR overrides config file assert parse().color is False