Skip to content

Commit fd23cb8

Browse files
committed
Use native parser in testcheck.py only if env variable TEST_NATIVE_PARSER is set
Example: `TEST_NATIVE_PARSER=1 pytest mypy/test/testheck.py`.
1 parent 7ccf14f commit fd23cb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/test/testcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run_case_once(
136136
options = parse_options(original_program_text, testcase, incremental_step)
137137
options.use_builtins_fixtures = True
138138
options.show_traceback = True
139-
options.native_parser = True # XXX remove
139+
options.native_parser = bool(os.environ.get("TEST_NATIVE_PARSER"))
140140

141141
if options.num_workers:
142142
options.fixed_format_cache = True

0 commit comments

Comments
 (0)