Skip to content

Commit

Permalink
Reenable testFlagsFile (#13479)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 22, 2022
1 parent 40dd719 commit d89b28d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test-data/unit/cmdline.test
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,13 @@ two/mod/__init__.py: note: See https://mypy.readthedocs.io/en/stable/running_myp
two/mod/__init__.py: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH
== Return code: 2

[case testFlagsFile-skip]
-- Note that we use `----`, because this is how `--` is escaped while `--` is a comment starter.
[case testFlagsFile]
# cmd: mypy @flagsfile
[file flagsfile]
--always-true=FLAG
----always-true=FLAG
main.py
[file main.py]
# TODO: this test case passes if you try the exact same thing
# outside of the test suite. what's going on? it's not related
# to the extra flags that testcmdline adds. and things work
# in the test suite with py2 (perhaps because it's a
# special option)
x: int
FLAG = False
if not FLAG:
Expand Down

0 comments on commit d89b28d

Please sign in to comment.