[Updated] D10250: tests: replace some `python` by `"$PYTHON"` to not only use Python 2
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Mar 23 04:47:43 UTC 2021
Closed by commit rHGea8bfd33c22a: tests: replace some `python` by `"$PYTHON"` to not only use Python 2 (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10250?vs=26549&id=26552
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10250/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10250
AFFECTED FILES
tests/test-convert-cvs.t
tests/test-merge-tools.t
CHANGE DETAILS
diff --git a/tests/test-merge-tools.t b/tests/test-merge-tools.t
--- a/tests/test-merge-tools.t
+++ b/tests/test-merge-tools.t
@@ -1921,7 +1921,7 @@
Binary files capability checking
$ hg update -q -C 0
- $ python <<EOF
+ $ "$PYTHON" <<EOF
> with open('b', 'wb') as fp:
> fp.write(b'\x00\x01\x02\x03')
> EOF
@@ -1929,7 +1929,7 @@
$ hg commit -qm "add binary file (#1)"
$ hg update -q -C 0
- $ python <<EOF
+ $ "$PYTHON" <<EOF
> with open('b', 'wb') as fp:
> fp.write(b'\x03\x02\x01\x00')
> EOF
diff --git a/tests/test-convert-cvs.t b/tests/test-convert-cvs.t
--- a/tests/test-convert-cvs.t
+++ b/tests/test-convert-cvs.t
@@ -521,7 +521,7 @@
|cp932 |\x82\xa0 | x x o |
$ mkdir -p cvsrepo/transcoding
- $ python <<EOF
+ $ "$PYTHON" <<EOF
> fp = open('cvsrepo/transcoding/file,v', 'wb')
> fp.write((b'''
> head 1.4;
To: martinvonz, #hg-reviewers, mharbison72
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210323/25e8d6a5/attachment-0002.html>
More information about the Mercurial-patches
mailing list