]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-148186: Improve `assertCountEqual` description in docs. (GH-148463) (#148585)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Apr 2026 23:45:18 +0000 (01:45 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 23:45:18 +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 67ae1d9157358d7c019d3563bba54a5a61f00892..d12bd0744a4c921aeb08b9581f0cc5566b61a6a4 100644 (file)
@@ -1221,9 +1221,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.                         |              |
    +---------------------------------------+--------------------------------+--------------+
    | :meth:`assertStartsWith(a, b)         | ``a.startswith(b)``            | 3.14         |
    | <TestCase.assertStartsWith>`          |                                |              |