Author Sergey.Kirpichev
Recipients Sergey.Kirpichev
Date 2018-02-12.13:49:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518443379.42.0.467229070634.issue32832@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-02-12 13:49:39Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev
2018-02-12 13:49:39Sergey.Kirpichevsetmessageid: <1518443379.42.0.467229070634.issue32832@psf.upfronthosting.co.za>
2018-02-12 13:49:39Sergey.Kirpichevlinkissue32832 messages
2018-02-12 13:49:39Sergey.Kirpichevcreate