aboutsummaryrefslogtreecommitdiff
path: root/tests/builder/timeout.test.py
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-15 14:05:41 +0530
committernatsuoto <[email protected]>2026-07-15 14:05:41 +0530
commitf14a239abc99f3575bbc3ce26a6b4e3871891b0c (patch)
treea857847064faa8e1af393f5b61a314f620fa4908 /tests/builder/timeout.test.py
parent111a310d05df79582a0d8f51c20046b63a002cd7 (diff)
downloadedify-f14a239abc99f3575bbc3ce26a6b4e3871891b0c.tar.xz
edify-f14a239abc99f3575bbc3ce26a6b4e3871891b0c.zip
feat!(builder): close the match-verb surface at test/match/search/findall/sub; reach fullmatch/finditer/subn/split via .to_regex()
Diffstat (limited to 'tests/builder/timeout.test.py')
-rw-r--r--tests/builder/timeout.test.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/builder/timeout.test.py b/tests/builder/timeout.test.py
index 466ffb3..e443d2b 100644
--- a/tests/builder/timeout.test.py
+++ b/tests/builder/timeout.test.py
@@ -68,42 +68,18 @@ def test_matcher_match_forwards_timeout_to_the_cached_regex():
builder.match("aaa", timeout=1.0)
-def test_matcher_fullmatch_forwards_timeout_to_the_cached_regex():
- builder = RegexBuilder().string("a")
- with pytest.raises(TimeoutNotSupportedByEngineError):
- builder.fullmatch("a", timeout=1.0)
-
-
def test_matcher_findall_forwards_timeout_to_the_cached_regex():
builder = RegexBuilder().string("a")
with pytest.raises(TimeoutNotSupportedByEngineError):
builder.findall("aaa", timeout=1.0)
-def test_matcher_finditer_forwards_timeout_to_the_cached_regex():
- builder = RegexBuilder().string("a")
- with pytest.raises(TimeoutNotSupportedByEngineError):
- list(builder.finditer("aaa", timeout=1.0))
-
-
def test_matcher_sub_forwards_timeout_to_the_cached_regex():
builder = RegexBuilder().string("a")
with pytest.raises(TimeoutNotSupportedByEngineError):
builder.sub("b", "aaa", timeout=1.0)
-def test_matcher_subn_forwards_timeout_to_the_cached_regex():
- builder = RegexBuilder().string("a")
- with pytest.raises(TimeoutNotSupportedByEngineError):
- builder.subn("b", "aaa", timeout=1.0)
-
-
-def test_matcher_split_forwards_timeout_to_the_cached_regex():
- builder = RegexBuilder().string("a")
- with pytest.raises(TimeoutNotSupportedByEngineError):
- builder.split("aaa", timeout=1.0)
-
-
def test_no_timeout_kwarg_never_raises_on_either_engine():
assert _regex_pattern().search("aaa") is not None
assert _re_pattern().search("aaa") is not None