Message306504
I recommend not going down this path. The intended purpose of doctest is to test examples in documentation. In particular, those examples should match what a user would *see* when running the examples. In essence, the proposal is to allow tests to pass even when the examples *don't* match what the user sees.
ISTM, the str_fun() example *should* fail. It does not show *any* real interactive prompt session than can be reproduced by a user or anything that a user would ever see. IMO, that would be a documentation anti-pattern. |
|
Date |
User |
Action |
Args |
2017-11-19 17:01:01 | rhettinger | set | recipients:
+ rhettinger, tim.peters, r.david.murray, jbakker, Tomáš Petříček |
2017-11-19 17:01:01 | rhettinger | set | messageid: <1511110861.46.0.213398074469.issue32042@psf.upfronthosting.co.za> |
2017-11-19 17:01:01 | rhettinger | link | issue32042 messages |
2017-11-19 17:01:01 | rhettinger | create | |
|