[Python-checkins] python/dist/src/Lib/test test_macfs.py,1.3,1.4

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Tue, 11 Mar 2003 13:48:58 -0800


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

Modified Files:
	test_macfs.py 
Log Message:
Allow unicode pathnames where FSRefs are expected. Fixes 696253.


Index: test_macfs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_macfs.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_macfs.py	19 Feb 2003 02:35:05 -0000	1.3
--- test_macfs.py	11 Mar 2003 21:48:55 -0000	1.4
***************
*** 27,30 ****
--- 27,35 ----
          fsr = macfs.FSRef(test_support.TESTFN)
          self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname())
+         
+     def test_fsref_unicode(self):
+         testfn_unicode = unicode(test_support.TESTFN)
+         fsr = macfs.FSRef(testfn_unicode)
+         self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname())
  
      def test_coercion(self):