summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-01-19 05:18:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-01-19 05:18:35 (GMT)
commit2c028492d46e058ceaf81c3ec3c806226bf39b0b (patch)
treee42b8e7846ff239b48a8dcde1d8e478951f6b3cd /Lib/test/test_descr.py
parent3114d763fb0eb469dcae24b616c727303261b30f (diff)
parent9ad11544bfb80b7881e0d567e40ef2fa2da58f02 (diff)
downloadcpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.zip
cpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.tar.gz
cpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.tar.bz2
merge 3.5 (#25731)
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 06d660e..d1b2905 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4564,6 +4564,14 @@ order (MRO) for bases """
self.assertRegex(repr(method),
r"<bound method qualname of <object object at .*>>")
+ def test_deleting_new_in_subclasses(self):
+ class X:
+ def __init__(self, a):
+ pass
+ X.__new__ = None
+ del X.__new__
+ X(1) # should work
+
class DictProxyTests(unittest.TestCase):
def setUp(self):