Message200271
The failure in test_discovery.py is odd. It's failing because loadTestsFromModule() is being passed a keyword arguemnt use_load_tests=False.
On the surface, the failure makes sense because if you look in test_discover.py, it's defining a lambda for loader.loadTestsFromModule that takes only one argument, the module name.
But the deeper question is why self.loadTestsFromModule() is being passed use_load_tests=False? loadTestsFromModule() is documented to take *only* the module name:
http://docs.python.org/3/library/unittest.html#unittest.TestLoader.loadTestsFromModule
But then if you look at loader.py, loadTestsFromModule does indeed take an undocumented use_load_tests keyword argument.
So it seems like there's two problems here. use_load_tests is undocumented, and the lambda in test_discovery.py should take that keyword argument. Michael, can you weigh in on this? |
|
Date |
User |
Action |
Args |
2013-10-18 15:16:12 | barry | set | recipients:
+ barry, rbcollins, vila, r.david.murray, michael.foord, chris.jerdonek, zach.ware, elopio |
2013-10-18 15:16:12 | barry | set | messageid: <1382109372.85.0.61930986215.issue16662@psf.upfronthosting.co.za> |
2013-10-18 15:16:12 | barry | link | issue16662 messages |
2013-10-18 15:16:12 | barry | create | |
|