[Python-checkins] r59206 - python/trunk/Lib/test/test_descr.py

christian.heimes python-checkins at python.org
Wed Nov 28 00:53:14 CET 2007


Author: christian.heimes
Date: Wed Nov 28 00:53:14 2007
New Revision: 59206

Modified:
   python/trunk/Lib/test/test_descr.py
Log:
I forgot to fix one occurence of new in test_descr

Modified: python/trunk/Lib/test/test_descr.py
==============================================================================
--- python/trunk/Lib/test/test_descr.py	(original)
+++ python/trunk/Lib/test/test_descr.py	Wed Nov 28 00:53:14 2007
@@ -2010,7 +2010,7 @@
     # 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:


More information about the Python-checkins mailing list