Skip to content

Commit d88a45c

Browse files
author
hauntsaninja
committed
add --namespace packages to package root tests
1 parent bb403c2 commit d88a45c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test-data/unit/cmdline.test

+4-4
Original file line numberDiff line numberDiff line change
@@ -934,27 +934,27 @@ emarg/foo.py:1: error: Name 'fail' is not defined
934934
emarg/hatch/villip/mankangulisk.py:1: error: Name 'fail' is not defined
935935

936936
[case testPackageRootEmpty]
937-
# cmd: mypy --package-root= a/b/c.py main.py
937+
# cmd: mypy --namespace-packages --package-root= a/b/c.py main.py
938938
[file a/b/c.py]
939939
[file main.py]
940940
import a.b.c
941941

942942
[case testPackageRootNonEmpty]
943-
# cmd: mypy --package-root=a/ a/b/c.py main.py
943+
# cmd: mypy --namespace-packages --package-root=a/ a/b/c.py main.py
944944
[file a/b/c.py]
945945
[file main.py]
946946
import b.c
947947

948948
[case testPackageRootMultiple1]
949-
# cmd: mypy --package-root=. --package-root=a a/b/c.py d.py main.py
949+
# cmd: mypy --namespace-packages --package-root=. --package-root=a a/b/c.py d.py main.py
950950
[file a/b/c.py]
951951
[file d.py]
952952
[file main.py]
953953
import b.c
954954
import d
955955

956956
[case testPackageRootMultiple2]
957-
# cmd: mypy --package-root=a/ --package-root=./ a/b/c.py d.py main.py
957+
# cmd: mypy --namespace-packages --package-root=a/ --package-root=./ a/b/c.py d.py main.py
958958
[file a/b/c.py]
959959
[file d.py]
960960
[file main.py]

0 commit comments

Comments
 (0)