summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cppext
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-02 04:45:34 (GMT)
committerGitHub <noreply@github.com>2023-09-02 04:45:34 (GMT)
commitf3ba0a74cd50274acdcd592d4ce8395b92492b7c (patch)
tree761e44f1d648492afdb821e7a309558b31578bc9 /Lib/test/test_cppext
parentaa52888e6a0269f0c31a24bd0d1adb3238147261 (diff)
downloadcpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.zip
cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.tar.gz
cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.tar.bz2
gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421)
Only mark tests which spend significant system or user time, by itself or in subprocesses.
Diffstat (limited to 'Lib/test/test_cppext')
-rw-r--r--Lib/test/test_cppext/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cppext/__init__.py b/Lib/test/test_cppext/__init__.py
index 8adff91..74bf420 100644
--- a/Lib/test/test_cppext/__init__.py
+++ b/Lib/test/test_cppext/__init__.py
@@ -16,9 +16,11 @@ SETUP = os.path.join(os.path.dirname(__file__), 'setup.py')
@support.requires_subprocess()
class TestCPPExt(unittest.TestCase):
+ @support.requires_resource('cpu')
def test_build_cpp11(self):
self.check_build(False, '_testcpp11ext')
+ @support.requires_resource('cpu')
def test_build_cpp03(self):
self.check_build(True, '_testcpp03ext')