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-06-18.21:16:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371590163.56.0.716538742533.issue18258@psf.upfronthosting.co.za>
In-reply-to
Content
The test package is almost to the point where I can run `PCbuild\python_d.exe -m unittest discover Lib/test/ "test_*.py"` and get a useful result, the only thing that still blows up is multibytecodec_support.py.  I had not previously noticed this problem due to the way support.open_urlresource works, requiring the 'urlfetch' resource if and only if the requested file has not already been fetched before and stored in the Lib/test/data dir.  multibytecodec_support.TestBase_Mapping blows things up because it uses __init__ instead of setUp to try opening the needed file, which causes ResourceDenied to be raised at class creation time rather than test run time, which unittest can't handle.  The attached patch fixes this (at the expense of opening and closing the file once per test method, rather than once per class) as well as converting the test_codecmaps* scripts from test_main to unittest.main.
History
Date User Action Args
2013-06-18 21:16:03zach.waresetrecipients: + zach.ware, brett.cannon, ezio.melotti
2013-06-18 21:16:03zach.waresetmessageid: <1371590163.56.0.716538742533.issue18258@psf.upfronthosting.co.za>
2013-06-18 21:16:03zach.warelinkissue18258 messages
2013-06-18 21:16:03zach.warecreate