Skip to content

Commit cd279e9

Browse files
fix test
1 parent c5ce82c commit cd279e9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test-data/unit/check-errorcodes.test

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

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

0 commit comments

Comments
 (0)