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 zach.ware
Recipients brett.cannon, ezio.melotti, zach.ware
Date 2013-02-26.21:38:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361914705.71.0.738486694226.issue17303@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the fix for test discovery of test_future* (particularly test_future3).  Without the patch, running 'python -m unittest discover Lib/test/ "test_future*"' results in an error in test_future3.py, due to test_future.py's FutureTest.test_future3 removing test_future3 from sys.modules by way of support.unload.  The patch replaces all instances of support.unload with a support.CleanImport context manager.

The patch also replaces test_main() in all test_future*.py modules, just for good measure.
History
Date User Action Args
2013-02-26 21:38:25zach.waresetrecipients: + zach.ware, brett.cannon, ezio.melotti
2013-02-26 21:38:25zach.waresetmessageid: <1361914705.71.0.738486694226.issue17303@psf.upfronthosting.co.za>
2013-02-26 21:38:25zach.warelinkissue17303 messages
2013-02-26 21:38:25zach.warecreate