From f14a239abc99f3575bbc3ce26a6b4e3871891b0c Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Wed, 15 Jul 2026 14:05:41 +0530 Subject: feat!(builder): close the match-verb surface at test/match/search/findall/sub; reach fullmatch/finditer/subn/split via .to_regex() --- tests/builder/timeout.test.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tests/builder/timeout.test.py') 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 -- cgit v1.2.3