summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-03-02 17:25:27 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-03-02 17:25:27 (GMT)
commit056e2654911b404538d1169f34a576b26bde2ca0 (patch)
treef142584aec1a705687b9d9873231d78f0ce0c4af /Lib/test/test_inspect.py
parent6c6596ec52256f3b98475f83f4a7e476094b55f9 (diff)
downloadcpython-056e2654911b404538d1169f34a576b26bde2ca0.zip
cpython-056e2654911b404538d1169f34a576b26bde2ca0.tar.gz
cpython-056e2654911b404538d1169f34a576b26bde2ca0.tar.bz2
Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__
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 0dc7451..5c6ae39 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -1764,6 +1764,11 @@ class TestSignatureObject(unittest.TestCase):
__call__ = type
test_callable(ThisWorksNow())
+ # Regression test for issue #20786
+ test_unbound_method(dict.__delitem__)
+ test_unbound_method(property.__delete__)
+
+
@cpython_only
@unittest.skipIf(MISSING_C_DOCSTRINGS,
"Signature information for builtins requires docstrings")