Skip to content

Commit c418e8f

Browse files
committed
fix lint
1 parent 484947d commit c418e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def multi_raise_py_error(v: Any) -> Any:
551551
s2.validate_python('anything')
552552

553553
cause_group = exc_info.value.__cause__
554-
assert isinstance(cause_group, BaseExceptionGroup)
554+
assert isinstance(cause_group, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above
555555
assert len(cause_group.exceptions) == 1
556556

557557
cause = cause_group.exceptions[0]
@@ -576,7 +576,7 @@ def outer_raise_py_error(v: Any) -> Any:
576576
with pytest.raises(ValidationError) as exc_info:
577577
s3.validate_python('anything')
578578

579-
assert isinstance(exc_info.value.__cause__, BaseExceptionGroup)
579+
assert isinstance(exc_info.value.__cause__, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above
580580
assert len(exc_info.value.__cause__.exceptions) == 1
581581
cause = exc_info.value.__cause__.exceptions[0]
582582
assert cause.__notes__ and cause.__notes__[-1].startswith('\nPydantic: ')
@@ -585,7 +585,7 @@ def outer_raise_py_error(v: Any) -> Any:
585585
assert isinstance(subcause, ValidationError)
586586

587587
cause_group = subcause.__cause__
588-
assert isinstance(cause_group, BaseExceptionGroup)
588+
assert isinstance(cause_group, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above
589589
assert len(cause_group.exceptions) == 1
590590

591591
cause = cause_group.exceptions[0]

0 commit comments

Comments
 (0)