8000 add failing test · python/mypy@e43f3d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit e43f3d2

Browse files
committed
add failing test
1 parent 4e25c67 commit e43f3d2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test-data/unit/check-modules.test

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,24 @@ main:1: error: Cannot find module named 'nonexistent'
262262
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
263263
main:2: error: Unsupported left operand type for + ("None")
264264

265+
[case testRepeatedImportStar]
266+
import a
267+
268+
[file a.py]
269+
from b import *
270+
from c import greet
271+
272+
[file b.py]
273+
HELLO = 'hello there'
274+
275+
[file c.py]
276+
from a import HELLO
277+
def greet() -> None:
278+
print(HELLO)
279+
bad
280+
281+
[builtins fixtures/list.pyi]
282+
265283
[case testAccessingUnknownModule]
266284
import xyz
267285
xyz.foo()

0 commit comments

Comments
 (0)
0