Skip to content

Commit d89b28d

Browse files
authored
Reenable testFlagsFile (#13479)
1 parent 40dd719 commit d89b28d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test-data/unit/cmdline.test

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,13 @@ two/mod/__init__.py: note: See https://mypy.readthedocs.io/en/stable/running_myp
130130
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
131131
== Return code: 2
132132

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

0 commit comments

Comments
 (0)