Closed
Description
Since #3133 was merged I see occasional test failures in AppVeyor (i.e. on Windows) with the traceback below. I suspect this is due to some background process on Windows (e.g. a virus checker or another container?) still having the file open, but a simple (?) solution would be to add --cache-dir=nul
to the mypy invocations on Windows. (Though that will need to be done somewhere in the test framework I suspect.)
For now I'm just going to ignore such failures.
(UPDATE: example taken from https://ci.appveyor.com/project/gvanrossum/mypy/build/1.0.1227/job/9q6qgru4f6ig6ar8 )
Traceback (most recent call last):
File "C:\projects\mypy\scripts\mypy", line 6, in <module>
main(__file__)
File "C:\projects\mypy\mypy\main.py", line 46, in main
res = type_check_only(sources, bin_dir, options)
File "C:\projects\mypy\mypy\main.py", line 93, in type_check_only
options=options)
File "C:\projects\mypy\mypy\build.py", line 188, in build
graph = dispatch(sources, manager)
File "C:\projects\mypy\mypy\build.py", line 1570, in dispatch
process_graph(graph, manager)
File "C:\projects\mypy\mypy\build.py", line 1813, in process_graph
process_stale_scc(graph, scc, manager)
File "C:\projects\mypy\mypy\build.py", line 1921, in process_stale_scc
graph[id].write_cache()
File "C:\projects\mypy\mypy\build.py", line 1551, in write_cache
self.manager)
File "C:\projects\mypy\mypy\build.py", line 904, in write_cache
os.replace(data_json_tmp, data_json)
PermissionError: [WinError 5] Access is denied: '.mypy_cache\\3.\\enum.data.json.d2782ac765091066' -> '.mypy_cache\\3.6\\enum.data.json'
Metadata
Metadata
Assignees
Labels
No labels