diff options
author | Armin Rigo <arigo@tunes.org> | 2005-09-25 11:45:45 +0000 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2005-09-25 11:45:45 +0000 |
commit | dd5c023af56b9a424a3965364521c50b73308379 (patch) | |
tree | a5523abd7d1eb9bf44ca9722f4798d49b0497503 /Lib/test/inspect_fodder2.py | |
parent | e9f8ec98d4cd4542b5d6c5870d56a1ce1ae5d03b (diff) | |
download | cpython-git-dd5c023af56b9a424a3965364521c50b73308379.tar.gz |
some more fixes and tests for inspect.getsource(), triggered by crashes
from the PyPy project as well as the SF bug #1295909.
Diffstat (limited to 'Lib/test/inspect_fodder2.py')
-rw-r--r-- | Lib/test/inspect_fodder2.py | 24 |
1 files changed, 24 insertions, 0 deletions
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 |