Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes bpo-32859: Don't retry dup3() if it is not available at runtime (
pythonGH-5708) os.dup2() tests for dup3() system call availability at runtime, but doesn't remember the result across calls, repeating the test on each call with inheritable=False. Since the caller of os.dup2() is expected to hold the GIL, fix this by making the variable holding the test result static.
- Loading branch information