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 DD8241581D3 for ; Wed, 8 May 2024 16:24:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26AB02BC01E; Wed, 8 May 2024 16:24:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B5C72BC01E for ; Wed, 8 May 2024 16:24:16 +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 013273431CB for ; Wed, 8 May 2024 16:24:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C2A21A42 for ; Wed, 8 May 2024 16:24:13 +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: <1715185401.5650f79e69382b9efac0210383fb0960ef054893.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: tests/addons/ X-VCS-Repository: proj/pkgcore/pkgcheck X-VCS-Files: tests/addons/test_addons.py X-VCS-Directories: tests/addons/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 5650f79e69382b9efac0210383fb0960ef054893 X-VCS-Branch: master Date: Wed, 8 May 2024 16:24:13 +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: 1e111f7a-0fab-47fb-8935-684ac45de5c9 X-Archives-Hash: a4f3338a2b3b2d4910f36a7ceb32e32d commit: 5650f79e69382b9efac0210383fb0960ef054893 Author: Lucio Sauer posteo net> AuthorDate: Tue Apr 30 21:35:04 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed May 8 16:23:21 2024 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=5650f79e modify test to check that timeout=0 is never passed to _ftp_check followup to f691ea197c3db922edf33e570708751421db48aa Signed-off-by: Lucio Sauer posteo.net> Closes: https://github.com/pkgcore/pkgcheck/pull/678 Signed-off-by: Arthur Zamarin gentoo.org> tests/addons/test_addons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/addons/test_addons.py b/tests/addons/test_addons.py index 47503a6c..c02214f7 100644 --- a/tests/addons/test_addons.py +++ b/tests/addons/test_addons.py @@ -387,10 +387,12 @@ class TestNetAddon: addon = addons.NetAddon(options) assert isinstance(addon.session, requests.Session) assert addon.session.timeout == 10 + assert addon.timeout == 10 # a timeout of zero disables timeouts entirely options, _ = tool.parse_args(["scan", "--timeout", "0"]) addon = addons.NetAddon(options) assert addon.session.timeout is None + assert addon.timeout is None def test_args(self, tool): options, _ = tool.parse_args(