Skip to content

Commit f66df83

Browse files
CPython Developersyouknowone
authored andcommitted
Require cpu resource to test_search_anchor_at_beginning
cherry-pick python/cpython#117616
1 parent 6a64af1 commit f66df83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_re.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test.support import (gc_collect, bigmemtest, _2G,
22
cpython_only, captured_stdout,
33
check_disallow_instantiation, is_emscripten, is_wasi,
4-
SHORT_TIMEOUT)
4+
SHORT_TIMEOUT, requires_resource)
55
import locale
66
import re
77
import string
@@ -2233,6 +2233,7 @@ def test_bug_40736(self):
22332233
with self.assertRaisesRegex(TypeError, "got 'type'"):
22342234
re.search("x*", type)
22352235

2236+
@requires_resource('cpu')
22362237
def test_search_anchor_at_beginning(self):
22372238
s = 'x'*10**7
22382239
start = time.perf_counter()

0 commit comments

Comments
 (0)