summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cppext
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-02 23:22:33 (GMT)
committerGitHub <noreply@github.com>2023-09-02 23:22:33 (GMT)
commitdcaacd906638edbc66cc84fa651163dc7a743070 (patch)
tree69a416280c70c78c98656ec8cdb8d48059d46a12 /Lib/test/test_cppext
parent7269916cd7b89b5e6f20bfe83ebe1038bda56b4b (diff)
downloadcpython-dcaacd906638edbc66cc84fa651163dc7a743070.zip
cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.gz
cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.bz2
[3.12] gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) (#108798)
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. (cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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 f3d32a3..a322f41 100644
--- a/Lib/test/test_cppext/__init__.py
+++ b/Lib/test/test_cppext/__init__.py
@@ -17,9 +17,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')