Message312053
The Python stdlib allows override of sys.ps1/ps2 (to make IPython-like dynamic prompts and so on). I believe it would be a good idea to
support this in doctest too, to cover cases when given application
uses different from defaults settings for the interpreter.
Probably, we could add ps1/2 optional arguments for DoctestParser.__init__().
Some projects already patch doctest module for this, e.g. IPython:
https://github.com/ipython/ipython/blob/master/IPython/testing/plugin/ipdoctest.py
It shouldn't be too hard to port this feature. |
|
Date |
User |
Action |
Args |
2018-02-12 13:49:39 | Sergey.Kirpichev | set | recipients:
+ Sergey.Kirpichev |
2018-02-12 13:49:39 | Sergey.Kirpichev | set | messageid: <1518443379.42.0.467229070634.issue32832@psf.upfronthosting.co.za> |
2018-02-12 13:49:39 | Sergey.Kirpichev | link | issue32832 messages |
2018-02-12 13:49:39 | Sergey.Kirpichev | create | |
|