From: Inada Naoki Date: Thu, 11 Apr 2019 10:37:53 +0000 (+0900) Subject: bpo-36597: fix random doctest failure (GH-12778) X-Git-Tag: v3.7.4rc1~249 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac31da8f3710f9f9b8dbb4c36b2108fb1e5b4a48;p=thirdparty%2FPython%2Fcpython.git bpo-36597: fix random doctest failure (GH-12778) --- diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 40bb06adfd44..7f3d267d74c2 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -489,11 +489,14 @@ Unless you set the :attr:`~finalize.atexit` attribute to :const:`False`, a finalizer will be called when the program exits if it is still alive. For instance - >>> obj = Object() - >>> weakref.finalize(obj, print, "obj dead or exiting") #doctest:+ELLIPSIS - - >>> exit() #doctest:+SKIP - obj dead or exiting +.. doctest:: + :options: +SKIP + + >>> obj = Object() + >>> weakref.finalize(obj, print, "obj dead or exiting") + + >>> exit() + obj dead or exiting Comparing finalizers with :meth:`__del__` methods