Thanks to visit codestin.com Credit goes to github.com
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 fd36790 commit 784623cCopy full SHA for 784623c
1 file changed
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
- warnings_helper, SHORT_TIMEOUT, CPUStopwatch)
+ warnings_helper, SHORT_TIMEOUT, CPUStopwatch, requires_resource)
5
import locale
6
import re
7
import string
@@ -2282,6 +2282,9 @@ def test_bug_40736(self):
2282
with self.assertRaisesRegex(TypeError, "got 'type'"):
2283
re.search("x*", type)
2284
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')
2288
def test_search_anchor_at_beginning(self):
2289
s = 'x'*10**7
2290
with CPUStopwatch() as stopwatch:
0 commit comments