From 85509f624f58a33e25f19ab4d809e382ec71efb9 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Jan 2025 01:04:38 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- Doc/library/unittest.rst | 4 ++-- Doc/whatsnew/3.14.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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`.)