Skip to content

Commit

Permalink
fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jul 2, 2023
1 parent cb56517 commit 888c3fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,13 +702,15 @@ def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
try:
try:
if not testcase.name.endswith("_import"):
if sys.platform == "win32" and "CI" in os.environ:
options.no_import = True
else:
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
generate_stubs(options)
Expand Down

0 comments on commit 888c3fe

Please sign in to comment.