Issue 9903: test_concurrent_futures writes on stderr (original) (raw)

test_concurrent_futures writes the following on stderr:

exception calling callback for <Future at 0x6a72508 state=finished returned int> Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.parc-leopard-1/build/Lib/concurrent/futures/_base.py", line 267, in _invoke_callbacks callback(self) File "/Users/buildbot/buildarea/3.x.parc-leopard-1/build/Lib/test/test_concurrent_futures.py", line 626, in raising_fn raise Exception('doh!') Exception: doh!

test_concurrent_futures should capture stderr instead, and also probably check its value (to be sure that the exception does get logged out properly).