[Python-checkins] CVS: python/dist/src/Lib doctest.py,1.5,1.6
Tim Peters
tim_one@users.sourceforge.net
Tue, 13 Feb 2001 16:43:23 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12602/python/dist/src/lib
Modified Files:
doctest.py
Log Message:
Change doctest exception example to one whose detail hasn't changed since 1.5.2.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** doctest.py 2001/02/13 20:54:42 1.5
--- doctest.py 2001/02/14 00:43:21 1.6
***************
*** 160,167 ****
traceback itself. For example:
! >>> 1/0
Traceback (most recent call last):
File "<stdin>", line 1, in ?
! ZeroDivisionError: integer division or modulo by zero
>>>
--- 160,167 ----
traceback itself. For example:
! >>> [1, 2, 3].remove(42)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
! ValueError: list.remove(x): x not in list
>>>
***************
*** 245,253 ****
Running doctest.__doc__
! Trying: 1/0
Expecting:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
! ZeroDivisionError: integer division or modulo by zero
ok
Trying: x = 12
--- 245,253 ----
Running doctest.__doc__
! Trying: [1, 2, 3].remove(42)
Expecting:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
! ValueError: list.remove(x): x not in list
ok
Trying: x = 12