commit | 2463f8f831bdf7ed562a26a13a6214f203f0b037 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Aug 14 21:34:08 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Aug 14 21:34:08 2006 +0000 |
tree | d0cb99f5c7ce3624a210f436117b8cfa7eb63445 | |
parent | 26a07b5198e47d7874eef14e15dee2cc0e644cb9 [diff] [blame] |
Make tabnanny recognize IndentationErrors raised by tokenize. Add a test to test_inspect to make sure indented source is recognized correctly. (fixes #1224621)
diff --git a/Lib/test/inspect_fodder2.py b/Lib/test/inspect_fodder2.py index f150ec6..3d978cf 100644 --- a/Lib/test/inspect_fodder2.py +++ b/Lib/test/inspect_fodder2.py
@@ -88,3 +88,12 @@ def func88(): # comment return 90 + +# line 92 +def f(): + class X: + def g(): + "doc" + return 42 + return X +method_in_dynamic_class = f().g.im_func