[Python-bugs-list] [ python-Bugs-654783 ] doctest and exception messages

noreply@sourceforge.net noreply@sourceforge.net
Mon, 16 Dec 2002 14:01:14 -0800


Bugs item #654783, was opened at 2002-12-16 19:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=654783&group_id=5470

Category: Documentation
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Aahz (aahz)
Assigned to: Nobody/Anonymous (nobody)
Summary: doctest and exception messages

Initial Comment:
doctest should include information something like this:

    doctest docstrings should not rely on the text of internal Python
    exceptions.  Notice the way factorial() uses its own error messages
    with the standard Python exceptions.  The internal messages can
    change even in bugfix releases (as in 2.2.1 to 2.2.2).


----------------------------------------------------------------------

>Comment By: Neil Schemenauer (nascheme)
Date: 2002-12-16 22:01

Message:
Logged In: YES 
user_id=35752

Couldn't doctest be modified so that it only compares the
exception
name only?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=654783&group_id=5470