[issue36597] Travis CI: doctest failure

Inada Naoki report at bugs.python.org
Thu Apr 11 04:09:05 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

https://github.com/python/cpython/blob/master/Doc/library/weakref.rst#finalizer-objects

    >>> obj = Object()
    >>> weakref.finalize(obj, print, "obj dead or exiting")  #doctest:+ELLIPSIS
    <finalize object at ...; for 'Object' at ...>
    >>> exit()                                               #doctest:+SKIP
    obj dead or exiting

Note that "#doctest:+SKIP".  print("obj dead or exiting") is called after weakref test.
This may caused random doctest fail.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36597>
_______________________________________


More information about the Python-bugs-list mailing list