Skip to content

Commit 62a7492

Browse files
author
Guido van Rossum
committed
Disable cache in non-incremental tests
Fixes #3253
1 parent 78bcea1 commit 62a7492

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎mypy/test/testcheck.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def run_case_once(self, testcase: DataDrivenTestCase, incremental: int = 0) -> N
154154
options.strict_optional = True
155155
if incremental:
156156
options.incremental = True
157+
else:
158+
options.cache_dir = os.devnull # Dont waste time writing cache
157159

158160
sources = []
159161
for module_name, program_path, program_text in module_data:

0 commit comments

Comments
 (0)