git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] git-p4: support python3 in the tests

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 25, 2016, 22:07 UTC
Message-ID
<xmqqzishibpz.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1461420826-4416-1-git-send-email-luke@diamand.org>
Luke Diamand <luke@diamand.org> writes:
Show 5 quoted lines
> This patchset updates the git-p4 tests so that they work with
> either Python2 or Python3.
>
> Note that this does *not* fix git-p4 to work with Python3 - that's
> a much bigger challenge.

We use Python outside p4 tests (e.g. remote-svn test), and the way they invoke the interpreter is to say "$PYTHON_PATH" and avoid saying "python" which picks whatever random version of Python interpreter happens to be the first on $PATH. Shouldn't the tests touched by this series be doing the same?

Show 8 quoted lines
>
> Luke Diamand (2):
>   git-p4 tests: cd to testdir before running python
>   git-p4 tests: work with python3 as well as python2
>
>  t/lib-git-p4.sh            | 7 ++++---
>  t/t9802-git-p4-filetype.sh | 6 +++---
>  2 files changed, 7 insertions(+), 6 deletions(-)
Previous: Luke DiamandNext: Luke Diamand
Message 4 of 5 in “git-p4: support python3 in the tests”
  1. 0/2 git-p4: support python3 in the testsLuke Diamand, Apr 23, 2016
  2. 1/2 git-p4 tests: cd to testdir before running pythonLuke Diamand, Apr 23, 2016
  3. 2/2 git-p4 tests: work with python3 as well as python2Luke Diamand, Apr 23, 2016
  4. Junio C HamanoApr 25, 2016
  5. Luke DiamandApr 26, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.