Variant of patch #1478292.  doctest.register_optionflag(name)
shouldn't create a new flag when `name` is already the name of
an option flag.
3 files changed