We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558b517 commit 2449441Copy full SHA for 2449441
Lib/test/test_re.py
@@ -1,7 +1,7 @@
1
from test.support import (gc_collect, bigmemtest, _2G,
2
cpython_only, captured_stdout,
3
check_disallow_instantiation, is_emscripten, is_wasi,
4
- SHORT_TIMEOUT)
+ SHORT_TIMEOUT, requires_resource)
5
import locale
6
import re
7
import string
@@ -2217,6 +2217,9 @@ def test_bug_40736(self):
2217
with self.assertRaisesRegex(TypeError, "got 'type'"):
2218
re.search("x*", type)
2219
2220
+ # gh-117594: The test is not slow by itself, but it relies on
2221
+ # the absolute computation time and can fail on very slow computers.
2222
+ @requires_resource('cpu')
2223
def test_search_anchor_at_beginning(self):
2224
s = 'x'*10**7
2225
start = time.perf_counter()
0 commit comments