bpo-36675: Doc: Reveal doctest directives by JulienPalard · Pull Request #23620 · python/cpython (original) (raw)
I think it's better to keep it hidden in this case. The case is:
>>> id(1.0) # certain to fail some of the time
7948648
>>> class C: pass
>>> C() # the default repr() for instances embeds an address
<C object at 0x00AC18F0>
the comment in the case is true: it's expected to fail. If we reveal the hidden doctest: +SKIP
it's no longer expected to fail, the comment becomes erroneous.
The point of this example is to demo usefull cases for +ELLIPSIS
, not +SKIP
.