File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ def set_docstring(self):
579579 self .docstring = None
580580 if not self .get_args ():
581581 self .funcprops = None
582- elif self .current_func is not None :
582+ if self .current_func is not None :
583583 try :
584584 self .docstring = pydoc .getdoc (self .current_func )
585585 except IndexError :
Original file line number Diff line number Diff line change @@ -222,6 +222,13 @@ def test_issue572(self):
222222 self .set_input_line ("WonderfulSpam(" )
223223 self .assertTrue (self .repl .get_args ())
224224
225+ def test_issue583 (self ):
226+ self .repl = FakeRepl ()
227+ self .repl .push ("a = 1.2\n " , False )
228+ self .set_input_line ("a.is_integer(" )
229+ self .repl .set_docstring ()
230+ self .assertIsNot (self .repl .docstring , None )
231+
225232
226233class TestGetSource (unittest .TestCase ):
227234 def setUp (self ):
You can’t perform that action at this time.
0 commit comments