You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Lib/test/test_pydoc/test_pydoc.py
+38-7Lines changed: 38 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -229,11 +229,12 @@ class C(builtins.object)
229
229
forsinexpected_data_docstrings)
230
230
231
231
# output pattern for missing module
232
-
missing_pattern= ('''\
232
+
defmissing_pattern(name, dunder=False):
233
+
return ('''\
233
234
No help entry found for %%r.
234
-
Use help() to get the interactive help utility.
235
+
%%sUse help() to get the interactive help utility.
235
236
Use help(str) for help on the str class.
236
-
Additional documentation is available online at https://docs.python.org/%s.%s/'''%sys.version_info[:2]).replace('\n', os.linesep)
237
+
Additional documentation is available online at https://docs.python.org/%s.%s/'''%sys.version_info[:2]).replace('\n', os.linesep)% (name, "Use help('specialnames') for a list of special names for which help is available.\n"ifdunderelse"")
237
238
238
239
# output pattern for module with bad imports
239
240
badimport_pattern="problem in %s - ModuleNotFoundError: No module named %r"
0 commit comments