[Patches] [ python-Patches-1478292 ] Fix doctest nit.

SourceForge.net noreply at sourceforge.net
Wed May 10 04:48:51 CEST 2006


Patches item #1478292, was opened at 2006-04-28 05:54
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1478292&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Thomas Heller (theller)
>Assigned to: Nobody/Anonymous (nobody)
Summary: Fix doctest nit.

Initial Comment:
I was puzzled by this behaviour:

C:\>py25
Python 2.5a2 (r25a2:45740, Apr 27 2006, 06:31:19) [MSC
v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> from doctest import register_optionflag
>>> print register_optionflag("SPAM")
1024
>>> print register_optionflag("SPAM")
2048
>>> print register_optionflag("SPAM")
2048
>>>

I suggest that register_optionflags does not
re-register already registered flags.

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

>Comment By: Tim Peters (tim_one)
Date: 2006-05-09 22:48

Message:
Logged In: YES 
user_id=31435

I agree that this behavior wasn't intended.  Fixed in a
simpler way, and added a test to ensure it stays fixed, in
rev  45944 on the trunk and rev 45945 on the 2.4 branch. 
Thanks!

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

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


More information about the Patches mailing list