From d88a45ccb78bcfbcd07bf7ac0b9a5755e52de582 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Fri, 23 Oct 2020 15:40:50 -0700 Subject: [PATCH] add --namespace packages to package root tests --- test-data/unit/cmdline.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test-data/unit/cmdline.test b/test-data/unit/cmdline.test index 541f63d10039..2b6182a8e10c 100644 --- a/test-data/unit/cmdline.test +++ b/test-data/unit/cmdline.test @@ -934,19 +934,19 @@ emarg/foo.py:1: error: Name 'fail' is not defined emarg/hatch/villip/mankangulisk.py:1: error: Name 'fail' is not defined [case testPackageRootEmpty] -# cmd: mypy --package-root= a/b/c.py main.py +# cmd: mypy --namespace-packages --package-root= a/b/c.py main.py [file a/b/c.py] [file main.py] import a.b.c [case testPackageRootNonEmpty] -# cmd: mypy --package-root=a/ a/b/c.py main.py +# cmd: mypy --namespace-packages --package-root=a/ a/b/c.py main.py [file a/b/c.py] [file main.py] import b.c [case testPackageRootMultiple1] -# cmd: mypy --package-root=. --package-root=a a/b/c.py d.py main.py +# cmd: mypy --namespace-packages --package-root=. --package-root=a a/b/c.py d.py main.py [file a/b/c.py] [file d.py] [file main.py] @@ -954,7 +954,7 @@ import b.c import d [case testPackageRootMultiple2] -# cmd: mypy --package-root=a/ --package-root=./ a/b/c.py d.py main.py +# cmd: mypy --namespace-packages --package-root=a/ --package-root=./ a/b/c.py d.py main.py [file a/b/c.py] [file d.py] [file main.py]