]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-101100: Make __subclasses__ doctest stable (GH-124577) (#124579)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 26 Sep 2024 20:56:06 +0000 (22:56 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 20:56:06 +0000 (13:56 -0700)
commita0799223ae39483f41b292e1f39826c1e73d5064
tree85410689c83aa2642fc2af9bac3d4d96d92ed809
parent410e0efc545c3fc542d00ea5dca54f2d559eef03
[3.13] gh-101100: Make __subclasses__ doctest stable (GH-124577) (#124579)

gh-101100: Make __subclasses__ doctest stable (GH-124577)

Using a standard library class makes this test difficult to maintain
as other tests and other parts of the stdlib may create subclasses,
which may still be alive when this test runs depending on GC timing.
(cherry picked from commit 08a467b537b3d9b499d060697e79b3950374ab0f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/reference/datamodel.rst