[Python-checkins] python/dist/src/Lib/test test_decimal.py,1.8,1.9

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Jul 14 17:41:59 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23358/test

Modified Files:
	test_decimal.py 
Log Message:
* Rename "Signals" to "_signals" making it non-public.
* Context.create_decimal can take a zero default just like Decimal().
* Fix typo in comment.



Index: test_decimal.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_decimal.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_decimal.py	10 Jul 2004 14:14:37 -0000	1.8
--- test_decimal.py	14 Jul 2004 15:41:57 -0000	1.9
***************
*** 36,39 ****
--- 36,42 ----
  import random
  
+ # Useful Test Constant
+ Signals = getcontext().flags.keys()
+ 
  # Tests are built around these assumed context defaults
  DefaultContext.prec=9
***************
*** 481,485 ****
  
          # empty
!         self.assertRaises(TypeError, nc.create_decimal)
  
          # from None
--- 484,491 ----
  
          # empty
!         d = Decimal()
!         self.assertEqual(str(d), '0')
!         d = nc.create_decimal()
!         self.assertEqual(str(d), '0')
  
          # from None



More information about the Python-checkins mailing list