Skip to content

Commit fc76c90

Browse files
fix test
1 parent 68ec62b commit fc76c90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,10 @@ if int() is str(): # E: Non-overlapping identity check (left operand type: "int
535535
[builtins fixtures/primitives.pyi]
536536

537537
[case testErrorCodeMissingModule]
538-
from defusedxml import xyz # E: Library stubs not installed for "defusedxml" [import-untyped] \
538+
# Note: it was too difficult for me to figure out how to test [import-untyped] here,
539+
# (ideally, it would!)
540+
# but testNamespacePkgWStubs does test that, anyway.
541+
from defusedxml import xyz # E: Library stubs not installed for "defusedxml" [import-untyped-stubs-available] \
539542
# N: Hint: "python3 -m pip install types-defusedxml" \
540543
# N: (or run "mypy --install-types" to install all missing stub packages)
541544
from nonexistent import foobar # E: Cannot find implementation or library stub for module named "nonexistent" [import-not-found]

0 commit comments

Comments
 (0)