aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/frames.test.py
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-15 18:12:42 +0530
committernatsuoto <[email protected]>2026-07-15 18:12:42 +0530
commitcf4a4ea68eca91aa044556806d3d91369182702c (patch)
tree2daa50e0f80eda81ec08a4174be56f7ebdc78825 /tests/errors/frames.test.py
parent93371d459ad47a46310f729950ec383372cd2706 (diff)
downloadedify-cf4a4ea68eca91aa044556806d3d91369182702c.tar.xz
edify-cf4a4ea68eca91aa044556806d3d91369182702c.zip
chore: codebase-wide rule audit — eliminate Any/object where non-protocol, hoist in-function imports, rename compound/folder-repeat files, replace generic-exception raises, bind chained comprehensions, strip __init__ docstrings, remove pragmas
Diffstat (limited to 'tests/errors/frames.test.py')
-rw-r--r--tests/errors/frames.test.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/errors/frames.test.py b/tests/errors/frames.test.py
index b4077ba..0ae0c1b 100644
--- a/tests/errors/frames.test.py
+++ b/tests/errors/frames.test.py
@@ -3,6 +3,7 @@
import pytest
from edify import RegexBuilder
+from edify.errors.quantifier import DanglingQuantifierError
from edify.errors.structure import CannotCallSubexpressionError
@@ -53,8 +54,6 @@ def test_subexpression_lists_open_frames_from_the_argument_not_the_receiver():
def test_dangling_quantifier_reports_the_specific_pending_quantifier_name():
- from edify.errors.quantifier import DanglingQuantifierError
-
with pytest.raises(DanglingQuantifierError) as excinfo:
RegexBuilder().exactly(3).to_regex_string()
text = str(excinfo.value)
@@ -62,8 +61,6 @@ def test_dangling_quantifier_reports_the_specific_pending_quantifier_name():
def test_dangling_quantifier_falls_back_to_generic_summary_when_name_unknown():
- from edify.errors.quantifier import DanglingQuantifierError
-
error = DanglingQuantifierError()
text = str(error)
assert "dangling quantifier" in text