[Python-checkins] CVS: python/dist/src/Lib/test test_augassign.py,1.4,1.5

Tim Peters tim_one@users.sourceforge.net
2001年12月11日 11:20:18 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11796/python/Lib/test
Modified Files:
	test_augassign.py 
Log Message:
Fiddle test_augassign so it passes under -Qnew.
Index: test_augassign.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_augassign.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_augassign.py	2001年09月04日 19:14:14	1.4
--- test_augassign.py	2001年12月11日 19:20:15	1.5
***************
*** 218,224 ****
 x *= 1
 
! x / 1
! 1 / x
! x /= 1
 
 x // 1
--- 218,231 ----
 x *= 1
 
! if 1/2 == 0:
! x / 1
! 1 / x
! x /= 1
! else:
! # True division is in effect, so "/" doesn't map to __div__ etc;
! # but the canned expected-output file requires that those get called.
! x.__div__(1)
! x.__rdiv__(1)
! x.__idiv__(1)
 
 x // 1

AltStyle によって変換されたページ (->オリジナル) /