Skip to content

gh-149879: Don't import msvcrt in _pyio on Cygwin - #149899

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:pyio
May 15, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:pyio

Conversation

@vstinner

@vstinner vstinner commented May 15, 2026 •

Copy link
Copy Markdown
Member

The msvcrt extension module cannot be built on Cygwin.

The msvcrt extension module cannot be built on Cygwin.
@vstinner

Copy link
Copy Markdown
Member Author

This change fix a regression introduced by commit f0f55a0 in 2015. It does fix the issue reported in 2016: #69069 (comment).

@vstinner

Copy link
Copy Markdown
Member Author

The macos-26 job failed with:

FAIL: test_trampoline_works_with_forks (test.test_perf_profiler.TestPerfTrampoline.test_trampoline_works_with_forks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_perf_profiler.py", line 145, in test_trampoline_works_with_forks
    self.assertEqual(process.returncode, 0)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 11 != 0

That's the unrelated issue gh-149156.

@vstinner
vstinner merged commit 1441f2f into python:main May 15, 2026
89 of 91 checks passed
@vstinner
vstinner deleted the pyio branch May 15, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant