Skip to content

Commit

Permalink
more hack
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jul 2, 2023
1 parent e5cfb30 commit b1aceaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,12 @@ def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
try:
try:
if not testcase.name.endswith("_import"):
if sys.platform == "win32" and "GITHUB_ACTION" in os.environ:
# These seem to trigger a RecursionError in shutil.rmtree in CI
# Possibly related to https://github.com/python/cpython/issues/79325
import pytest

pytest.skip("Skipping stubgen import tests on Windows in GitHub Actions")
options.no_import = True
if not testcase.name.endswith("_semanal"):
options.parse_only = True
Expand Down

0 comments on commit b1aceaf

Please sign in to comment.