Skip to content

Commit

Permalink
hack hack hack hack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jul 2, 2023
1 parent b3b41ef commit ac7db77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mypy/test/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ def teardown(self) -> None:
os.chdir(self.old_cwd)
if self.tmpdir is not None:
try:
self.tmpdir.cleanup()
# We run into a RecursionError on Windows
# https://github.com/python/cpython/issues/79325
# So just avoid cleaning up the temporary directory on CI
if sys.platform != "win32" or "GITHUB_ACTION" not in os.environ:
self.tmpdir.cleanup()
except OSError:
pass
self.old_cwd = None
Expand Down

0 comments on commit ac7db77

Please sign in to comment.