summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-23 14:10:24 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-07-23 14:10:24 (GMT)
commit28cff18dedaf994109a1c4c8f363a076941e1ba3 (patch)
tree5b10c790c279ca73151c3f5a39cf191acc6b5908 /Lib/test/test_inspect.py
parent56786c9ea27efb30320f89d663dbff74f5a5e014 (diff)
parent4f4913b38bba5e01fc0e7a26f4840bf342365d3d (diff)
downloadcpython-28cff18dedaf994109a1c4c8f363a076941e1ba3.zip
cpython-28cff18dedaf994109a1c4c8f363a076941e1ba3.tar.gz
cpython-28cff18dedaf994109a1c4c8f363a076941e1ba3.tar.bz2
Merge 3.5 (issues #21217, #24485).
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index e620893..042617b 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -464,6 +464,7 @@ class TestDecorators(GetSourceBase):
def test_getsource_unwrap(self):
self.assertSourceEqual(mod2.real, 130, 132)
+ @unittest.expectedFailure
def test_decorator_with_lambda(self):
self.assertSourceEqual(mod2.func114, 113, 115)
@@ -563,6 +564,10 @@ class TestBuggyCases(GetSourceBase):
def test_getsource_on_method(self):
self.assertSourceEqual(mod2.ClassWithMethod.method, 118, 119)
+ def test_nested_func(self):
+ self.assertSourceEqual(mod2.cls135.func136, 136, 139)
+
+
class TestNoEOL(GetSourceBase):
def setUp(self):
self.tempdir = TESTFN + '_dir'