diff options
author | Georg Brandl <georg@python.org> | 2006-08-14 21:34:08 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-08-14 21:34:08 +0000 |
commit | 2463f8f831bdf7ed562a26a13a6214f203f0b037 (patch) | |
tree | d0cb99f5c7ce3624a210f436117b8cfa7eb63445 /Lib/test/test_inspect.py | |
parent | 26a07b5198e47d7874eef14e15dee2cc0e644cb9 (diff) | |
download | cpython-git-2463f8f831bdf7ed562a26a13a6214f203f0b037.tar.gz |
Make tabnanny recognize IndentationErrors raised by tokenize.
Add a test to test_inspect to make sure indented source
is recognized correctly. (fixes #1224621)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 300de1416b..fa4bd4003f 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -274,6 +274,9 @@ class TestBuggyCases(GetSourceBase): def test_with_comment_instead_of_docstring(self): self.assertSourceEqual(mod2.func88, 88, 90) + def test_method_in_dynamic_class(self): + self.assertSourceEqual(mod2.method_in_dynamic_class, 95, 97) + # Helper for testing classify_class_attrs. def attrs_wo_objs(cls): return [t[:3] for t in inspect.classify_class_attrs(cls)] |