]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-148186: Improve `assertCountEqual` description in docs. (GH-148463) (#148586)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Apr 2026 23:45:32 +0000 (01:45 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 23:45:32 +0000 (23:45 +0000)
gh-148186: Improve `assertCountEqual` description in docs. (GH-148463)
(cherry picked from commit 94d42bf5c2b95417d6187a57fef94570ba017e33)

Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru>
Doc/library/unittest.rst

index 22316e25c5aa181e99798b47d35f3d3c6b955e5b..1a02066ff997f47283b58a94bdaa796de60941c8 100644 (file)
@@ -1211,9 +1211,9 @@ Test cases
    | :meth:`assertNotRegex(s, r)           | ``not r.search(s)``            | 3.2          |
    | <TestCase.assertNotRegex>`            |                                |              |
    +---------------------------------------+--------------------------------+--------------+
-   | :meth:`assertCountEqual(a, b)         | *a* and *b* have the same      | 3.2          |
-   | <TestCase.assertCountEqual>`          | elements in the same number,   |              |
-   |                                       | regardless of their order.     |              |
+   | :meth:`assertCountEqual(a, b)         | *a* contains the same elements | 3.2          |
+   | <TestCase.assertCountEqual>`          | as *b*, regardless of their    |              |
+   |                                       | order.                         |              |
    +---------------------------------------+--------------------------------+--------------+