classification
Title: Running same doctests not possible on both py3 and py2
Type: behavior Stage: resolved
Components: Demos and Tools, Library (Lib) Versions: Python 3.1, Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IGNORE_EXCEPTION_DETAIL should ignore the module name
View: 7490
Assigned To: Nosy List: ionelmc, r.david.murray
Priority: normal Keywords:

Created on 2013-12-20 18:11 by ionelmc, last changed 2013-12-20 19:09 by r.david.murray. This issue is now closed.

Files
File name Uploaded Description Edit
tete.py ionelmc, 2013-12-20 18:11
tete.rst ionelmc, 2013-12-20 18:11
Messages (4)
msg206698 - (view) Author: Ionel Cristian Mărieș (ionelmc) Date: 2013-12-20 18:11
One of these doesn't work depending on how you write the exception name.


 python3 -mdoctest src/tete.rst  
 python -mdoctest src/tete.rst   

One cannot put an ellipsis in the exception name so you see how this is a problem.
msg206699 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-12-20 18:16
This has already been addressed in issue 7490.
msg206700 - (view) Author: Ionel Cristian Mărieș (ionelmc) Date: 2013-12-20 18:17
Oooops, sorry.
msg206701 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-12-20 19:09
No problem.  It's not necessarily *obvious* what one needs to do to make this work, so missing it isn't too surprising.
History
Date User Action Args
2013-12-20 19:09:31r.david.murraysetmessages: + msg206701
2013-12-20 18:17:47ionelmcsetmessages: + msg206700
2013-12-20 18:16:05r.david.murraysetstatus: open -> closed

superseder: IGNORE_EXCEPTION_DETAIL should ignore the module name

nosy: + r.david.murray
messages: + msg206699
resolution: duplicate
stage: resolved
2013-12-20 18:11:12ionelmcsetfiles: + tete.rst
2013-12-20 18:11:01ionelmccreate