Index: test/inspect_fodder2.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/inspect_fodder2.py,v retrieving revision 1.3 diff -c -r1.3 inspect_fodder2.py *** test/inspect_fodder2.py 7 Jan 2005 16:01:23 -0000 1.3 --- test/inspect_fodder2.py 18 Feb 2005 16:15:43 -0000 *************** *** 53,55 **** --- 53,66 ---- def setfunc(func): globals()["anonymous"] = func setfunc(lambda x, y: x*y) + + # line 57 + def with_comment(): # hello + world + + # line 61 + multiline_sig = [ + lambda (x, + y): x+y, + None, + ] Index: test/test_inspect.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v retrieving revision 1.19 diff -c -r1.19 test_inspect.py *** test/test_inspect.py 7 Jan 2005 16:01:23 -0000 1.19 --- test/test_inspect.py 18 Feb 2005 16:15:44 -0000 *************** *** 229,234 **** --- 229,243 ---- # as argument to another function. self.assertSourceEqual(mod2.anonymous, 55, 55) + class TestBuggyCases(GetSourceBase): + fodderFile = mod2 + + def test_with_comment(self): + self.assertSourceEqual(mod2.with_comment, 58, 59) + + def test_multiline_sig(self): + self.assertSourceEqual(mod2.multiline_sig[0], 63, 64) + # Helper for testing classify_class_attrs. def attrs_wo_objs(cls): return [t[:3] for t in inspect.classify_class_attrs(cls)] *************** *** 414,419 **** --- 423,429 ---- def test_main(): run_unittest(TestDecorators, TestRetrievingSourceCode, TestOneliners, + TestBuggyCases, TestInterpreterStack, TestClassesAndFunctions, TestPredicates) if __name__ == "__main__":