# HG changeset patch # User Georges Racinet <georges.racinet@octobus.net> # Date 1577139571 -3600 # Mon Dec 23 23:19:31 2019 +0100 # Node ID 0beb089157f8fa275b9a8785627318a15498e36b # Parent 7a13f6fa2da425c56ac59483cfcc953098a0157f py3: fixing bare prints in tests diff --git a/tests/test-git-submodules.t b/tests/test-git-submodules.t --- a/tests/test-git-submodules.t +++ b/tests/test-git-submodules.t @@ -20,7 +20,7 @@ $ mkdir gitrepo2 $ cd gitrepo2 - $ rmpwd="import sys; print sys.stdin.read().replace('$(dirname $(pwd))/', '')" + $ rmpwd="import sys; print(sys.stdin.read().replace('$(dirname $(pwd))/', ''))" different versions of git spell the dir differently. Older versions use the full path to the directory all the time, whereas newer version spell it sanely as it was given (eg . in a newer version, diff --git a/tests/test-renames.t b/tests/test-renames.t --- a/tests/test-renames.t +++ b/tests/test-renames.t @@ -36,7 +36,7 @@ $ fn_git_commit -msubalpha $ cd ../gitrepo - $ rmpwd="import sys; print sys.stdin.read().replace('$(dirname $(pwd))/', '')" + $ rmpwd="import sys; print(sys.stdin.read().replace('$(dirname $(pwd))/', ''))" $ clonefilt='s/Cloning into/Initialized empty Git repository in/;s/in .*/in .../' $ git submodule add ../gitsubmodule 2>&1 | python -c "$rmpwd" | sed "$clonefilt" | egrep -v '^done\.$'