From: Guido van Rossum Date: Mon, 16 Jul 2007 20:51:57 +0000 (+0000) Subject: Fix for one particular test (test_file). There are still four errors. X-Git-Tag: v3.0a1~633 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a2ccd0273c9694afd81bc141e2005820a30a29c;p=python Fix for one particular test (test_file). There are still four errors. (This is not the fix suggested by Hasan Diwan in SF patch# 1753889.) --- diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index dbcfe26de3..99e304774d 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -588,7 +588,7 @@ class HandlerTests(unittest.TestCase): TESTFN = test_support.TESTFN urlpath = sanepathname2url(os.path.abspath(TESTFN)) - towrite = "hello, world\n" + towrite = b"hello, world\n" urls = [ "file://localhost%s" % urlpath, "file://%s" % urlpath,