-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-multiprocessingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
import sys
import concurrent.futures
class MyException(Exception):
def __bool__(self):
return False
def raiser():
raise MyException("foo")
def main():
with concurrent.futures.ProcessPoolExecutor() as p:
print(p.submit(raiser).result())
if __name__ == "__main__":
sys.exit(main())
This program prints None
, but should fail and print a traceback
CPython versions tested on:
CPython main branch, 3.14, 3.13, 3.12, 3.11, 3.10, 3.9
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-multiprocessingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error