D2126: py3: replace file() with open() in test-import-bypass.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun Feb 11 09:05:18 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd667302b6ee1: py3: replace file() with open() in test-import-bypass.t (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2126?vs=5389&id=5415
REVISION DETAIL
https://phab.mercurial-scm.org/D2126
AFFECTED FILES
tests/test-import-bypass.t
CHANGE DETAILS
diff --git a/tests/test-import-bypass.t b/tests/test-import-bypass.t
--- a/tests/test-import-bypass.t
+++ b/tests/test-import-bypass.t
@@ -227,7 +227,7 @@
(this also tests that editor is not invoked for '--bypass', if the
commit message is explicitly specified, regardless of '--edit')
- $ $PYTHON -c 'file("a", "wb").write("a\r\n")'
+ $ $PYTHON -c 'open("a", "wb").write(b"a\r\n")'
$ hg ci -m makeacrlf
$ HGEDITOR=cat hg import -m 'should fail because of eol' --edit --bypass ../test.diff
applying ../test.diff
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list