Skip to content

Commit

Permalink
Switch to use -m syntax instead of file syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 committed Oct 4, 2021
1 parent 4b67462 commit 9314294
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test-data/unit/fine-grained-modules.test
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,9 @@ main:2: error: Cannot find implementation or library stub for module named "p"

[case testDeletePackage5]
# flags: --namespace-packages
# cmd1: mypy main p/a.py p/__init__.py
# cmd2: mypy main p/a.py
# cmd3: mypy main
# cmd1: mypy -m main -m p
# cmd2: mypy -m main -m p
# cmd3: mypy -m main -m p

import p.a
p.a.f(1)
Expand All @@ -927,9 +927,9 @@ main:6: error: Cannot find implementation or library stub for module named "p"

[case testDeletePackage6]
# flags: --namespace-packages
# cmd1: mypy p/a.py p/b.py p/__init__.py
# cmd2: mypy p/a.py p/b.py
# cmd3: mypy p/a.py p/b.py
# cmd1: mypy -m p
# cmd2: mypy -m p
# cmd3: mypy -m p
[file p/a.py]
def f(x: str) -> None: pass
[file p/b.py]
Expand Down

0 comments on commit 9314294

Please sign in to comment.