-Werror doesn't error out on DeprecationWarning for os.fork() #135427
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
3.15
new features, bugs and security fixes
extension-modules
C modules in the Modules dir
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Hi,
With the recent change that Python now throws a warning for programs that fork() when there are more than one threads. I was hoping to use
-Werror
to find and pinpoint all such occurrences in my software.Using python3.13 as installed by uv (cpython-3.13.4-linux-x86_64-gnu). With the following test code:
Running with
-Walways
gives me the expected warnings:However, running with
-Werror
, the code silently run (no exception raised, no warning printed):CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: