]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148186: Improve `assertCountEqual` description in docs. (#148463)
authorKliment Lamonov <klimentlamonov@yandex.ru>
Tue, 14 Apr 2026 23:39:16 +0000 (02:39 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 23:39:16 +0000 (19:39 -0400)
Doc/library/unittest.rst

index c7682c2274633b8e38e900812421a6da391b77e6..6e0df0648fb8bfbe3bee5ebc259670aac9a2c799 100644 (file)
@@ -1223,9 +1223,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>`          |                                |              |