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

Fred L. Drake fdrake@users.sourceforge.net
Wed, 14 Feb 2001 07:30:34 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv18323/test

Modified Files:
	test_cfgparser.py 
Log Message:

Test section name using some strange characters, including a backslash
(SF bug #132288).


Index: test_cfgparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cfgparser.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_cfgparser.py	2001/02/12 17:23:20	1.5
--- test_cfgparser.py	2001/02/14 15:30:31	1.6
***************
*** 12,17 ****
      L = cf.sections()
      L.sort()
!     verify(L == ['Commented Bar', 'Foo Bar',
!                  'Internationalized Stuff', 'Spacey Bar'],
             "unexpected list of section names")
  
--- 12,21 ----
      L = cf.sections()
      L.sort()
!     verify(L == [r'Commented Bar',
!                  r'Foo Bar',
!                  r'Internationalized Stuff',
!                  r'Section\with$weird%characters[' '\t',
!                  r'Spacey Bar',
!                  ],
             "unexpected list of section names")
  
***************
*** 139,142 ****
--- 143,147 ----
  [Commented Bar]
  foo: bar ; comment
+ [Section\with$weird%characters[""" '\t' r"""]
  [Internationalized Stuff]
  foo[bg]: Bulgarian