[Python-checkins] python/nondist/sandbox/decimal test_Decimal.py,
1.7, 1.8
facundobatista at users.sourceforge.net
facundobatista at users.sourceforge.net
Mon Mar 8 21:43:37 EST 2004
Update of /cvsroot/python/python/nondist/sandbox/decimal
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25708
Modified Files:
test_Decimal.py
Log Message:
Extracted the need of test.test_support to make the tests work. Added module docstring and version comments.
Index: test_Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/test_Decimal.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_Decimal.py 6 Feb 2004 16:56:03 -0000 1.7
--- test_Decimal.py 9 Mar 2004 02:43:34 -0000 1.8
***************
*** 1,2 ****
--- 1,18 ----
+ # Test Cases for Decimal module, version 0.1.1
+ # Written by Eric Price <eprice at tjhsst.edu>
+ # and Facundo Batista <facundo at taniquetil.com.ar>
+ """
+ These are the test cases for the Decimal module.
+
+ By now, they use the tests provided by Mike Cowlishaw to test the arithmetic
+ behaviour of the module.
+ """
+
+ # 0.1.1 2003.3.08 facundobatista: Commented out test.test_support
+
+ # ToDo:
+ #
+ # Add the behaviour tests according to the PEP
+
import unittest
import glob
***************
*** 5,9 ****
import os
! from test.test_support import TestSkipped, run_unittest
TESTDATADIR = 'tests'
--- 21,27 ----
import os
!
! #Commented out by Facundo Batista to make the test work
! #from test.test_support import TestSkipped, run_unittest
TESTDATADIR = 'tests'
***************
*** 434,438 ****
def test_main():
! run_unittest(DecimalTest)
if __name__ == '__main__':
--- 452,457 ----
def test_main():
! # run_unittest(DecimalTest)
! unittest.main()
if __name__ == '__main__':
More information about the Python-checkins
mailing list