Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add succeeding test and failing test relevant to feature
  • Loading branch information
wyattscarpenter committed Apr 5, 2026
commit 87b76e721944b0310e0153090426c2f1726bae9c
23 changes: 23 additions & 0 deletions mypy/test/meta/test_parse_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,26 @@ def test_bad_eq_version_check(self) -> None:
assert (
"version==3.7 always false since minimum runtime version is (3, 10)" in actual.stdout
)

def test_typical_error_comment(self) -> None:
# Act
actual = _run_pytest("""
[case abc]
a # E: typical-looking error comment
""")

# Assert
assert (
"typical-looking error comment" in actual.stderr
)
def test_lineleading_error_comment(self) -> None:
# Act
actual = _run_pytest("""
[case abc]
# E: line-leading error comment
""")

# Assert
assert (
"line-leading error comment" in actual.stderr
)
Loading