[Python-checkins] python/dist/src/Lib/test test_pow.py,1.15,1.16
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 07 Dec 2002 02:05:29 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv21241/Lib/test
Modified Files:
test_pow.py
Log Message:
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase.
Closes SF bug #643260.
Index: test_pow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pow.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_pow.py 23 Jul 2002 19:03:58 -0000 1.15
--- test_pow.py 7 Dec 2002 10:05:27 -0000 1.16
***************
*** 119,120 ****
--- 119,125 ----
n = pow(long(i),j,k)
if o != n: print 'Integer mismatch:', i,j,k
+
+ class TestRpow:
+ def __rpow__(self, other):
+ return None
+ None ** TestRpow() # Won't fail when __rpow__ invoked. SF bug #643260.