summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-27 23:53:14 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-27 23:53:14 (GMT)
commit636afc52c068ed88c08d1d0a09e459e8f3d200bc (patch)
tree51930c160387fcc8fde8952c1ac588d3619d3dd1 /Lib/test/test_descr.py
parent28104c58d2457e2b74245a49e703d020cc2489df (diff)
downloadcpython-636afc52c068ed88c08d1d0a09e459e8f3d200bc.zip
cpython-636afc52c068ed88c08d1d0a09e459e8f3d200bc.tar.gz
cpython-636afc52c068ed88c08d1d0a09e459e8f3d200bc.tar.bz2
I forgot to fix one occurence of new in test_descr
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 993cebd..9fa8659 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -2010,7 +2010,7 @@ def recursions():
# Bug #1202533.
class A(object):
pass
- A.__mul__ = new.instancemethod(lambda self, x: self * x, None, A)
+ A.__mul__ = types.MethodType(lambda self, x: self * x, None, A)
try:
A()*2
except RuntimeError: