[Python-checkins] python/dist/src/Lib/test test_pow.py,1.13,1.13.14.1
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 07 Dec 2002 02:15:40 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23477/Lib/test
Modified Files:
Tag: release22-maint
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.13
retrieving revision 1.13.14.1
diff -C2 -d -r1.13 -r1.13.14.1
*** test_pow.py 4 Sep 2001 06:37:28 -0000 1.13
--- test_pow.py 7 Dec 2002 10:15:38 -0000 1.13.14.1
***************
*** 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.