Skip to content

Commit 1382b7c

Browse files
Update check-errorcodes.test: add xfail test case for #19840
1 parent d27b43b commit 1382b7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
-- Tests for error codes and ignoring errors using error codes
22
--
3-
-- These implicitly use --show-error-codes.
3+
-- These implicitly use --show-error-codes. # TODO: isn't this statement redundant now that this flag defaults to true?
4+
5+
[case testErrorCodeMiscDoesntSuppressRevealType-xfail]
6+
# Prevent regression on https://github.com/python/mypy/issues/19840
7+
from typing import reveal_type
8+
reveal_type(1) #type: ignore[misc] # N: Revealed type is "Literal[1]?"
49

510
[case testErrorCodeNoAttribute]
611
import m

0 commit comments

Comments
 (0)