From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1568662-garchives=archives.gentoo.org@lists.gentoo.org> 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 58E2D158089 for <garchives@archives.gentoo.org>; Tue, 7 Nov 2023 20:35:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B57912BC029; Tue, 7 Nov 2023 20:35:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 9AB262BC025 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Nov 2023 20:35:07 +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 B1635335D42 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Nov 2023 20:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10BF21332 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Nov 2023 20:35:04 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1699389238.930c475d8ab0820f3808e02275ba630caf9a414c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/executing/, dev-python/executing/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/executing/executing-2.0.1.ebuild dev-python/executing/files/executing-2.0.1-additional-slow-tests.patch X-VCS-Directories: dev-python/executing/ dev-python/executing/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 930c475d8ab0820f3808e02275ba630caf9a414c X-VCS-Branch: master Date: Tue, 7 Nov 2023 20:35:04 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2056c393-7998-498e-b45e-f415b766cf43 X-Archives-Hash: 891c2735435950f3d8e0514c69ef9807 commit: 930c475d8ab0820f3808e02275ba630caf9a414c Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk> AuthorDate: Mon Nov 6 21:22:47 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Nov 7 20:33:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=930c475d dev-python/executing: add patch for new slow tests The original skips are technically for tests that take a long time to run, which these aren't really - they just fail if run under a sufficiently slow CPU since they are measuring a hard real-time benchmark. Already accepted upstream. See: https://github.com/alexmojaki/executing/pull/78 Bug: https://bugs.gentoo.org/909738 Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/executing/executing-2.0.1.ebuild | 2 ++ .../executing-2.0.1-additional-slow-tests.patch | 38 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/dev-python/executing/executing-2.0.1.ebuild b/dev-python/executing/executing-2.0.1.ebuild index a5e4ed0cc8c8..3e29d488d602 100644 --- a/dev-python/executing/executing-2.0.1.ebuild +++ b/dev-python/executing/executing-2.0.1.ebuild @@ -32,6 +32,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}/${PN}-2.0.1-additional-slow-tests.patch" ) + distutils_enable_tests pytest export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} diff --git a/dev-python/executing/files/executing-2.0.1-additional-slow-tests.patch b/dev-python/executing/files/executing-2.0.1-additional-slow-tests.patch new file mode 100644 index 000000000000..36346e7363fb --- /dev/null +++ b/dev-python/executing/files/executing-2.0.1-additional-slow-tests.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/show_bug.cgi?id=909738 +https://github.com/alexmojaki/executing/pull/78 + +From 9990d20a28d46e8a911c370a019f9231cad977f0 Mon Sep 17 00:00:00 2001 +From: matoro <matoro@users.noreply.github.com> +Date: Sun, 5 Nov 2023 19:54:34 -0500 +Subject: [PATCH] Add many_calls tests to EXECUTING_SLOW_TESTS + +--- + tests/test_main.py | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/tests/test_main.py b/tests/test_main.py +index 7e33247..bc015cd 100644 +--- a/tests/test_main.py ++++ b/tests/test_main.py +@@ -279,6 +279,10 @@ def test_future_import(self): + print(1 / 2) + tester(4) + ++ @pytest.mark.skipif( ++ not os.getenv("EXECUTING_SLOW_TESTS"), ++ reason="These tests are very slow, enable them explicitly", ++ ) + def test_many_calls(self): + node = None + start = time.time() +@@ -290,6 +294,10 @@ def test_many_calls(self): + self.assertIs(node, new_node) + self.assertLess(time.time() - start, 1) + ++ @pytest.mark.skipif( ++ not os.getenv("EXECUTING_SLOW_TESTS"), ++ reason="These tests are very slow, enable them explicitly", ++ ) + def test_many_source_for_filename_calls(self): + source = None + start = time.time()