We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7bdffd commit 87b76e7Copy full SHA for 87b76e7
mypy/test/meta/test_parse_data.py
@@ -67,3 +67,26 @@ def test_bad_eq_version_check(self) -> None:
67
assert (
68
"version==3.7 always false since minimum runtime version is (3, 10)" in actual.stdout
69
)
70
+
71
+ def test_typical_error_comment(self) -> None:
72
+ # Act
73
+ actual = _run_pytest("""
74
+ [case abc]
75
+ a # E: typical-looking error comment
76
+ """)
77
78
+ # Assert
79
+ assert (
80
+ "typical-looking error comment" in actual.stderr
81
+ )
82
+ def test_lineleading_error_comment(self) -> None:
83
84
85
86
+ # E: line-leading error comment
87
88
89
90
91
+ "line-leading error comment" in actual.stderr
92
0 commit comments