From dd5c023af56b9a424a3965364521c50b73308379 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Sun, 25 Sep 2005 11:45:45 +0000 Subject: some more fixes and tests for inspect.getsource(), triggered by crashes from the PyPy project as well as the SF bug #1295909. --- Lib/test/inspect_fodder2.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Lib/test/inspect_fodder2.py') diff --git a/Lib/test/inspect_fodder2.py b/Lib/test/inspect_fodder2.py index f216c825a9..f150ec6af5 100644 --- a/Lib/test/inspect_fodder2.py +++ b/Lib/test/inspect_fodder2.py @@ -64,3 +64,27 @@ multiline_sig = [ y): x+y, None, ] + +# line 68 +def func69(): + class cls70: + def func71(): + pass + return cls70 +extra74 = 74 + +# line 76 +def func77(): pass +(extra78, stuff78) = 'xy' +extra79 = 'stop' + +# line 81 +class cls82: + def func83(): pass +(extra84, stuff84) = 'xy' +extra85 = 'stop' + +# line 87 +def func88(): + # comment + return 90 -- cgit v1.2.1