File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1744,7 +1744,7 @@ def resolve(thing, forceload=0):
1744
1744
else :
1745
1745
special = ""
1746
1746
raise ImportError ('''\
1747
- No interactive help entry found for %r.
1747
+ No help entry found for %r.
1748
1748
%sUse help() to get the interactive help utility.
1749
1749
Use help(str) for help on the str class.
1750
1750
Additional documentation is available online at https://docs.python.org/%s.%s/''' % (thing , special , * sys .version_info [:2 ]))
Original file line number Diff line number Diff line change @@ -229,10 +229,11 @@ class C(builtins.object)
229
229
for s in expected_data_docstrings )
230
230
231
231
# output pattern for missing module
232
- missing_pattern = '''\
233
- No Python documentation found for %r.
232
+ missing_pattern = ( '''\
233
+ No help entry found for % %r.
234
234
Use help() to get the interactive help utility.
235
- Use help(str) for help on the str class.''' .replace ('\n ' , os .linesep )
235
+ 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 )
236
237
237
238
# output pattern for module with bad imports
238
239
badimport_pattern = "problem in %s - ModuleNotFoundError: No module named %r"
@@ -667,7 +668,7 @@ def test_fail_help_cli(self):
667
668
elines = (missing_pattern % 'abd' ).splitlines ()
668
669
with spawn_python ("-c" "help()" ) as proc :
669
670
out , _ = proc .communicate (b"abd" )
670
- olines = out .decode ().splitlines ()[- 9 :- 6 ]
671
+ olines = out .decode ().splitlines ()[- 10 :- 6 ]
671
672
olines [0 ] = olines [0 ].removeprefix ('help> ' )
672
673
self .assertEqual (elines , olines )
673
674
You can’t perform that action at this time.
0 commit comments