Message200271
| Author |
barry |
| Recipients |
barry, chris.jerdonek, elopio, michael.foord, r.david.murray, rbcollins, vila, zach.ware |
| Date |
2013年10月18日.15:16:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1382109372.85.0.61930986215.issue16662@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|