]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107526: Fix test_module_level_callable_unrepresentable_default (gh-108187)
authorDong-hee Na <donghee.na@python.org>
Mon, 21 Aug 2023 04:51:31 +0000 (13:51 +0900)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2023 04:51:31 +0000 (04:51 +0000)
Lib/test/test_pydoc.py

index fe4e37d4858c85b1fb629b9de7a8d894fdaf3781..9b5c11bf853fd9ab83d06a10572628a82fae49dc 100644 (file)
@@ -1232,7 +1232,7 @@ class TestDescriptions(unittest.TestCase):
 
     def test_module_level_callable_unrepresentable_default(self):
         self.assertEqual(self._get_summary_line(getattr),
-            "getattr(object, name, default=<unrepresentable>, /)")
+            "getattr(...)")
 
     def test_builtin_staticmethod_unrepresentable_default(self):
         self.assertEqual(self._get_summary_line(str.maketrans),