From 6a2ccd0273c9694afd81bc141e2005820a30a29c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 16 Jul 2007 20:51:57 +0000 Subject: [PATCH] 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.) --- Lib/test/test_urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index dbcfe26de3c..99e304774d2 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,