Inada Naoki <songofaca...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36597>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to