[Python-checkins] python/dist/src/Lib/test test_plistlib.py,1.1,1.2 test_ucn.py,1.12,1.13 test_unicodedata.py,1.7,1.8

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年3月07日 09:30:53 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv6619/python/Lib/test
Modified Files:
	test_plistlib.py test_ucn.py test_unicodedata.py 
Log Message:
Whitespace normalization.
Index: test_plistlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_plistlib.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_plistlib.py	25 Feb 2003 12:58:58 -0000	1.1
--- test_plistlib.py	7 Mar 2003 17:30:47 -0000	1.2
***************
*** 38,42 ****
 pl['aDate'] = plistlib.Date(time.mktime(time.gmtime()))
 return pl
! 
 def test_create(self):
 pl = self._create()
--- 38,42 ----
 pl['aDate'] = plistlib.Date(time.mktime(time.gmtime()))
 return pl
! 
 def test_create(self):
 pl = self._create()
***************
*** 48,52 ****
 pl.write(test_support.TESTFN)
 pl2 = plistlib.Plist.fromFile(test_support.TESTFN)
! self.assertEqual(dict(pl), dict(pl2)) 
 
 
--- 48,52 ----
 pl.write(test_support.TESTFN)
 pl2 = plistlib.Plist.fromFile(test_support.TESTFN)
! self.assertEqual(dict(pl), dict(pl2))
 
 
Index: test_ucn.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_ucn.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_ucn.py	26 Feb 2003 14:49:38 -0000	1.12
--- test_ucn.py	7 Mar 2003 17:30:48 -0000	1.13
***************
*** 16,20 ****
 def checkletter(self, name, code):
 # Helper that put all \N escapes inside eval'd raw strings,
! # to make sure this script runs even if the compiler 
 # chokes on \N escapes
 res = eval(ur'u"\N{%s}"' % name)
--- 16,20 ----
 def checkletter(self, name, code):
 # Helper that put all \N escapes inside eval'd raw strings,
! # to make sure this script runs even if the compiler
 # chokes on \N escapes
 res = eval(ur'u"\N{%s}"' % name)
Index: test_unicodedata.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicodedata.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_unicodedata.py	26 Feb 2003 14:49:39 -0000	1.7
--- test_unicodedata.py	7 Mar 2003 17:30:48 -0000	1.8
***************
*** 192,196 ****
 def test_digit_numeric_consistent(self):
 # Test that digit and numeric are consistent,
! # i.e. if a character has a digit value, 
 # it's numeric value should be the same.
 count = 0
--- 192,196 ----
 def test_digit_numeric_consistent(self):
 # Test that digit and numeric are consistent,
! # i.e. if a character has a digit value,
 # it's numeric value should be the same.
 count = 0

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