Message191434
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. |
|
Date |
User |
Action |
Args |
2013-06-18 21:16:03 | zach.ware | set | recipients:
+ zach.ware, brett.cannon, ezio.melotti |
2013-06-18 21:16:03 | zach.ware | set | messageid: <1371590163.56.0.716538742533.issue18258@psf.upfronthosting.co.za> |
2013-06-18 21:16:03 | zach.ware | link | issue18258 messages |
2013-06-18 21:16:03 | zach.ware | create | |
|