Skip to content

Commit

Permalink
TST: Fix inspect.get_doc()-returned default docstring on Py3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Feb 6, 2025
1 parent da45e73 commit f657649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdoc/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ class C:
but_clss_have_doc = int

doc = pdoc.Class('C', DUMMY_PDOC_MODULE, C)
self.assertEqual(doc.doc['vars_dont'].docstring, '')
expected = 'The type of None singleton.' if sys.version_info > (3, 13) else ''
self.assertEqual(doc.doc['vars_dont'].docstring, expected)
self.assertIn('integer', doc.doc['but_clss_have_doc'].docstring)

@unittest.skipIf(sys.version_info >= (3, 10), 'No builtin module "parser" in Py3.10')
Expand Down

0 comments on commit f657649

Please sign in to comment.