File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11from test .support import (gc_collect , bigmemtest , _2G ,
22 cpython_only , captured_stdout ,
33 check_disallow_instantiation , is_emscripten , is_wasi ,
4- warnings_helper , SHORT_TIMEOUT , CPUStopwatch )
4+ warnings_helper , SHORT_TIMEOUT , CPUStopwatch , requires_resource )
55import locale
66import re
77import string
@@ -2282,6 +2282,9 @@ def test_bug_40736(self):
22822282 with self .assertRaisesRegex (TypeError , "got 'type'" ):
22832283 re .search ("x*" , type )
22842284
2285+ # gh-117594: The test is not slow by itself, but it relies on
2286+ # the absolute computation time and can fail on very slow computers.
2287+ @requires_resource ('cpu' )
22852288 def test_search_anchor_at_beginning (self ):
22862289 s = 'x' * 10 ** 7
22872290 with CPUStopwatch () as stopwatch :
You can’t perform that action at this time.
0 commit comments