aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-02 07:45:34 +0300
committerGitHub <noreply@github.com>2023-09-02 07:45:34 +0300
commitf3ba0a74cd50274acdcd592d4ce8395b92492b7c (patch)
tree761e44f1d648492afdb821e7a309558b31578bc9 /Lib/test/pickletester.py
parentaa52888e6a0269f0c31a24bd0d1adb3238147261 (diff)
downloadcpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.tar.gz
cpython-f3ba0a74cd50274acdcd592d4ce8395b92492b7c.zip
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/pickletester.py')
-rw-r--r--Lib/test/pickletester.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 6e87370c206..a687fe06290 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -2576,6 +2576,7 @@ class AbstractPickleTests:
self.assertLess(pos - frameless_start, self.FRAME_SIZE_MIN)
@support.skip_if_pgo_task
+ @support.requires_resource('cpu')
def test_framing_many_objects(self):
obj = list(range(10**5))
for proto in range(4, pickle.HIGHEST_PROTOCOL + 1):