Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a2ccd0

Browse files
committed
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.)
1 parent 307fa8c commit 6a2ccd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def test_file(self):
588588

589589
TESTFN = test_support.TESTFN
590590
urlpath = sanepathname2url(os.path.abspath(TESTFN))
591-
towrite = "hello, world\n"
591+
towrite = b"hello, world\n"
592592
urls = [
593593
"file://localhost%s" % urlpath,
594594
"file://%s" % urlpath,

0 commit comments

Comments
 (0)