Issue 1478292: Fix doctest nit. (original) (raw)

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.