This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2015-01-30.14:08:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422626936.33.0.830645939586.issue23353@psf.upfronthosting.co.za>
In-reply-to
Content
Since my changeset a5efd5021ca1, the Python test suite starts to fail randomly. Running test_asyncio modifies sys.exc_info(): it is not (None, None, None) after the execution of test_asyncio. The problem comes from test_cancel_make_subprocess_transport_exec() of Lib/test/test_asyncio/test_subprocess.py.

I tried to write a simple script which does not depend on Python to reproduce the issue. See attached excinfo_bug2.py script.

Output:
---
exc_info after except (<class '__main__.MyException'>, MyException(), <traceback object at 0x7f09201ad7c8>)
exc_info at exit (<class '__main__.MyException'>, MyException(), <traceback object at 0x7f09201abd08>)
---

exc_info is supposed to be (None, None, None), at least at exit.

I will try to write an even simpler script to identify the bug.
History
Date User Action Args
2015-01-30 14:08:56vstinnersetrecipients: + vstinner
2015-01-30 14:08:56vstinnersetmessageid: <1422626936.33.0.830645939586.issue23353@psf.upfronthosting.co.za>
2015-01-30 14:08:56vstinnerlinkissue23353 messages
2015-01-30 14:08:56vstinnercreate