]> granicus.if.org Git - python/commitdiff
Fix for one particular test (test_file). There are still four errors.
authorGuido van Rossum <guido@python.org>
Mon, 16 Jul 2007 20:51:57 +0000 (20:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Jul 2007 20:51:57 +0000 (20:51 +0000)
(This is not the fix suggested by Hasan Diwan in SF patch# 1753889.)

Lib/test/test_urllib2.py

index dbcfe26de3ca518100eb401b947fcbc2a644b54d..99e304774d2086115e3f6c1081d7e3becf5fa56c 100644 (file)
@@ -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,