Skip to content

Commit f541ca9

Browse files
authored
Require cpu resource to test_search_anchor_at_beginning (RustPython#5218)
cherry-pick python/cpython#117616 Co-authored-by: CPython Developers <>
1 parent 6a64af1 commit f541ca9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)