Skip to content

Commit 3c8c009

Browse files
committed
Do not make drive-by check for other type errors
1 parent 471f57b commit 3c8c009

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/test_type_errors.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ def _test_type_errors(
8383
f"{test_file}:{line_num}: Expected error matching '{expected_pattern}' but got '{actual_msg}'"
8484
)
8585

86-
for line_num, actual_msg in sorted(actual_errors.items()):
87-
if line_num not in expected_errors:
88-
pytest.fail(f"{test_file}:{line_num}: Unexpected type error: {actual_msg}")
89-
9086

9187
def _has_type_error_assertions(test_file: Path) -> bool:
9288
"""Check if a file contains any type error assertions."""

0 commit comments

Comments
 (0)