diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2025-05-22 13:17:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 13:17:22 +0300 |
commit | 2602d8ae981c4bae1cada2c174b367d97f712efb (patch) | |
tree | b4b9f49c391469ee1fa894a85303916e47201aa1 /Lib/test/test_pydoc/test_pydoc.py | |
parent | bb244fd33d3eb67923ec3253568867bfaed9895f (diff) | |
download | cpython-2602d8ae981c4bae1cada2c174b367d97f712efb.tar.gz cpython-2602d8ae981c4bae1cada2c174b367d97f712efb.zip |
gh-71339: Use new assertion methods in tests (GH-129046)
Diffstat (limited to 'Lib/test/test_pydoc/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc/test_pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc/test_pydoc.py b/Lib/test/test_pydoc/test_pydoc.py index ac88b3c6f13..281b24eaa36 100644 --- a/Lib/test/test_pydoc/test_pydoc.py +++ b/Lib/test/test_pydoc/test_pydoc.py @@ -1380,7 +1380,7 @@ class PydocImportTest(PydocBaseTest): helper('modules garbage') result = help_io.getvalue() - self.assertTrue(result.startswith(expected)) + self.assertStartsWith(result, expected) def test_importfile(self): try: |