##// END OF EJS Templates
py3: replace file() with open() in test-encoding.t...
Pulkit Goyal -
r36068:035af48b default
parent child Browse files
Show More
@@ -15,9 +15,9 b' we need a repo with some legacy latin-1 '
15 $ hg co
15 $ hg co
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
17 $ $PYTHON << EOF
17 $ $PYTHON << EOF
18 > f = file('latin-1', 'w'); f.write("latin-1 e' encoded: \xe9"); f.close()
18 > f = open('latin-1', 'wb'); f.write(b"latin-1 e' encoded: \xe9"); f.close()
19 > f = file('utf-8', 'w'); f.write("utf-8 e' encoded: \xc3\xa9"); f.close()
19 > f = open('utf-8', 'wb'); f.write(b"utf-8 e' encoded: \xc3\xa9"); f.close()
20 > f = file('latin-1-tag', 'w'); f.write("\xe9"); f.close()
20 > f = open('latin-1-tag', 'wb'); f.write(b"\xe9"); f.close()
21 > EOF
21 > EOF
22
22
23 should fail with encoding error
23 should fail with encoding error
General Comments 0
You need to be logged in to leave comments. Login now