diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index d885f8b576de0f..42a3100122b283 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1313,7 +1313,7 @@ Test cases .. method:: assertStartsWith(s, prefix, msg=None) .. method:: assertNotStartsWith(s, prefix, msg=None) - Test that the unicode or byte string *s* starts (or does not start) + Test that the Unicode or byte string *s* starts (or does not start) with a *prefix*. *prefix* can also be a tuple of strings to try. @@ -1322,7 +1322,7 @@ Test cases .. method:: assertEndsWith(s, suffix, msg=None) .. method:: assertNotEndsWith(s, suffix, msg=None) - Test that the unicode or byte string *s* ends (or does not end) + Test that the Unicode or byte string *s* ends (or does not end) with a *suffix*. *suffix* can also be a tuple of strings to try. diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 29f520ed05c030..3c82cdb4f68a73 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -682,7 +682,7 @@ unittest - :meth:`~unittest.TestCase.assertStartsWith`, :meth:`~unittest.TestCase.assertNotStartsWith`, :meth:`~unittest.TestCase.assertEndsWith` and - :meth:`~unittest.TestCase.assertNotEndsWith` check whether the unicode + :meth:`~unittest.TestCase.assertNotEndsWith` check whether the Unicode or byte string starts or ends with particular string(s). (Contributed by Serhiy Storchaka in :gh:`71339`.)