[Python-checkins] python/dist/src/Lib/test test_urllib.py,1.14,1.14.6.1
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 31 Jul 2003 12:41:05 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23471
Modified Files:
Tag: release23-branch
test_urllib.py
Log Message:
Call os.path.normpath() before comparing pathnames. Fixes #776203 on MacOS9.
Index: test_urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllib.py,v
retrieving revision 1.14
retrieving revision 1.14.6.1
diff -C2 -d -r1.14 -r1.14.6.1
*** test_urllib.py 12 May 2003 20:19:37 -0000 1.14
--- test_urllib.py 31 Jul 2003 19:41:03 -0000 1.14.6.1
***************
*** 107,111 ****
# a headers value is returned.
result = urllib.urlretrieve("file:%s" % test_support.TESTFN)
! self.assertEqual(result[0], test_support.TESTFN)
self.assert_(isinstance(result[1], mimetools.Message),
"did not get a mimetools.Message instance as second "
--- 107,112 ----
# a headers value is returned.
result = urllib.urlretrieve("file:%s" % test_support.TESTFN)
! self.assertEqual(os.path.normpath(result[0]),
! os.path.normpath(test_support.TESTFN))
self.assert_(isinstance(result[1], mimetools.Message),
"did not get a mimetools.Message instance as second "