From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 14 Apr 2026 23:45:18 +0000 (+0200) Subject: [3.14] gh-148186: Improve `assertCountEqual` description in docs. (GH-148463) (#148585) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5dc69a65027238cf88c4a2f1675be0c9f4f1496b;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-148186: Improve `assertCountEqual` description in docs. (GH-148463) (#148585) gh-148186: Improve `assertCountEqual` description in docs. (GH-148463) (cherry picked from commit 94d42bf5c2b95417d6187a57fef94570ba017e33) Co-authored-by: Kliment Lamonov --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 67ae1d915735..d12bd0744a4c 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1221,9 +1221,9 @@ Test cases | :meth:`assertNotRegex(s, r) | ``not r.search(s)`` | 3.2 | | ` | | | +---------------------------------------+--------------------------------+--------------+ - | :meth:`assertCountEqual(a, b) | *a* and *b* have the same | 3.2 | - | ` | elements in the same number, | | - | | regardless of their order. | | + | :meth:`assertCountEqual(a, b) | *a* contains the same elements | 3.2 | + | ` | as *b*, regardless of their | | + | | order. | | +---------------------------------------+--------------------------------+--------------+ | :meth:`assertStartsWith(a, b) | ``a.startswith(b)`` | 3.14 | | ` | | |