[Python-checkins] CVS: python/dist/src/Lib/test test_ntpath.py,1.7,1.8

Tim Peters tim_one@users.sourceforge.net
Thu, 19 Jul 2001 12:02:15 -0700


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

Modified Files:
	test_ntpath.py 
Log Message:
Cosmetic:  break the long lines in test_ntpath.py, and get rid of its
expected-output file.


Index: test_ntpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_ntpath.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** test_ntpath.py	2001/02/09 11:50:16	1.7
--- test_ntpath.py	2001/07/19 19:02:12	1.8
***************
*** 1,3 ****
--- 1,4 ----
  import ntpath
+ from test_support import verbose
  import os
  
***************
*** 16,29 ****
          errors = errors + 1
  
! tester('ntpath.splitdrive("c:\\foo\\bar")', ('c:', '\\foo\\bar'))
! tester('ntpath.splitunc("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint', '\\foo\\bar'))
! tester('ntpath.splitdrive("c:/foo/bar")', ('c:', '/foo/bar'))
! tester('ntpath.splitunc("//conky/mountpoint/foo/bar")', ('//conky/mountpoint', '/foo/bar'))
  
  tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))
! tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint\\foo', 'bar'))
  
  tester('ntpath.split("c:\\")', ('c:\\', ''))
! tester('ntpath.split("\\\\conky\\mountpoint\\")', ('\\\\conky\\mountpoint', ''))
  
  tester('ntpath.split("c:/")', ('c:/', ''))
--- 17,36 ----
          errors = errors + 1
  
! tester('ntpath.splitdrive("c:\\foo\\bar")',
!        ('c:', '\\foo\\bar'))
! tester('ntpath.splitunc("\\\\conky\\mountpoint\\foo\\bar")',
!        ('\\\\conky\\mountpoint', '\\foo\\bar'))
! tester('ntpath.splitdrive("c:/foo/bar")',
!        ('c:', '/foo/bar'))
! tester('ntpath.splitunc("//conky/mountpoint/foo/bar")',
!        ('//conky/mountpoint', '/foo/bar'))
  
  tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))
! tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")',
!        ('\\\\conky\\mountpoint\\foo', 'bar'))
  
  tester('ntpath.split("c:\\")', ('c:\\', ''))
! tester('ntpath.split("\\\\conky\\mountpoint\\")',
!        ('\\\\conky\\mountpoint', ''))
  
  tester('ntpath.split("c:/")', ('c:/', ''))
***************
*** 46,49 ****
  if errors:
      print str(errors) + " errors."
! else:
      print "No errors.  Thank your lucky stars."
--- 53,56 ----
  if errors:
      print str(errors) + " errors."
! elif verbose:
      print "No errors.  Thank your lucky stars."