##// END OF EJS Templates
py3: replace file() with open() in test-import-bypass.t...
Pulkit Goyal -
r36044:d667302b default
parent child Browse files
Show More
@@ -227,7 +227,7 b' Test patch.eol is handled'
227 (this also tests that editor is not invoked for '--bypass', if the
227 (this also tests that editor is not invoked for '--bypass', if the
228 commit message is explicitly specified, regardless of '--edit')
228 commit message is explicitly specified, regardless of '--edit')
229
229
230 $ $PYTHON -c 'file("a", "wb").write("a\r\n")'
230 $ $PYTHON -c 'open("a", "wb").write(b"a\r\n")'
231 $ hg ci -m makeacrlf
231 $ hg ci -m makeacrlf
232 $ HGEDITOR=cat hg import -m 'should fail because of eol' --edit --bypass ../test.diff
232 $ HGEDITOR=cat hg import -m 'should fail because of eol' --edit --bypass ../test.diff
233 applying ../test.diff
233 applying ../test.diff
General Comments 0
You need to be logged in to leave comments. Login now