[Python-checkins] python/nondist/sandbox/decimal Decimal.py,1.7,1.8

eprice@users.sourceforge.net eprice@users.sourceforge.net
Tue, 27 May 2003 15:46:42 -0700


Update of /cvsroot/python/python/nondist/sandbox/decimal
In directory sc8-pr-cvs1:/tmp/cvs-serv14021

Modified Files:
	Decimal.py 
Log Message:
Updating tests since the new ones are incompatible with the old ones.



Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Decimal.py	27 May 2003 22:27:01 -0000	1.7
--- Decimal.py	27 May 2003 22:46:40 -0000	1.8
***************
*** 1904,1908 ****
--- 1904,1910 ----
              else:
                  exp = self._exp // 2
+             context.prec += ans._exp - exp
              ans = ans.rescale(Decimal(exp), context=context)
+             context.prec = firstprec
              context.regard_flags(flags)
          context.Emax, context.Emin = Emax, Emin