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 8E3C715808B for ; Sun, 18 Feb 2024 12:55:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65332E2C7E; Sun, 18 Feb 2024 12:55:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 4D7DBE2C7E for ; Sun, 18 Feb 2024 12:55:05 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7FB68343126 for ; Sun, 18 Feb 2024 12:55:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA94F14CF for ; Sun, 18 Feb 2024 12:55:02 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1708260881.0b94789f5b004fe13ca756b8e9be67bd31ec2344.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/sabnzbd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild X-VCS-Directories: net-nntp/sabnzbd/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0b94789f5b004fe13ca756b8e9be67bd31ec2344 X-VCS-Branch: master Date: Sun, 18 Feb 2024 12:55:02 +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: 8d1e6b6b-02f9-4354-a87c-b50cf7b99baf X-Archives-Hash: 808dd377b01acd7d1efa0e0c9b4eb73e commit: 0b94789f5b004fe13ca756b8e9be67bd31ec2344 Author: Sam James gentoo org> AuthorDate: Sun Feb 18 12:54:26 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 18 12:54:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b94789f net-nntp/sabnzbd: fixup pytest plugin handling Signed-off-by: Sam James gentoo.org> net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild b/net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild index f035384b9b22..0cc03bdddd59 100644 --- a/net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild +++ b/net-nntp/sabnzbd/sabnzbd-4.2.2.ebuild @@ -93,8 +93,6 @@ src_test() { 'tests/test_newswrapper.py::TestNewsWrapper' 'tests/test_happyeyeballs.py::TestHappyEyeballs' 'tests/test_internetspeed.py::TestInternetSpeed' - # Doesn't work, fixture 'fs' not found - 'tests/test_dirscanner.py::TestDirScanner' # Just plain fails 'tests/test_newsunpack.py::TestPar2Repair::test_basic' # Chromedriver tests don't want to behave in portage @@ -116,8 +114,17 @@ src_test() { 'tests/test_functional_sorting.py::TestDownloadSorting' ) + # The test suite is prone to being broken by random plugins that happen + # to be installed, so disable autoloading. local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -s -p pytest_mock -p tavern + # Use PYTEST_PLUGINS instead of args to 'epytest' because the test suite + # calls pytest itself and the args would get lost. To get the list of plugins, + # if stuck, comment out the AUTOLOAD line above, look at the list of loaded + # plugins at the top of the pytest output, then translate those into module names + # by e.g. checking equery f. + local -x PYTEST_PLUGINS=pytest_mock,tavern,tavern._core.pytest,pyfakefs.pytest_plugin + + epytest -s } src_install() {