Message257478
No, I don't think doctest should be made robust against RuntimeErrors. doctest's purpose is to check for bugs, and IMO this is a bug in flask. In particular, it is not doctest that flask is not cooperating with, it is hasattr. It used to be that hasattr would mask errors raised, and this caused a number of both debugging and production problems, to the point where hasattr was not considered safe to use. But it eventually got fixed: http://www.gossamer-threads.com/lists/python/dev/856859 |
|
Date |
User |
Action |
Args |
2016-01-04 18:36:22 | r.david.murray | set | recipients:
+ r.david.murray, steven.daprano, Lasse Schuirmann |
2016-01-04 18:36:22 | r.david.murray | set | messageid: <1451932582.87.0.526167756893.issue25998@psf.upfronthosting.co.za> |
2016-01-04 18:36:22 | r.david.murray | link | issue25998 messages |
2016-01-04 18:36:22 | r.david.murray | create | |
|