py3: use print as a function in tests/test-subrepo-svn.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 20 Sep 2018 17:16:16 +0300
changeset 39723 5495ceab5637
parent 39722 4bd6e444c76f
child 39724 e1e10cbb5568
py3: use print as a function in tests/test-subrepo-svn.t Differential Revision: https://phab.mercurial-scm.org/D4670
tests/test-subrepo-svn.t
--- a/tests/test-subrepo-svn.t	Mon Sep 17 17:47:24 2018 +0800
+++ b/tests/test-subrepo-svn.t	Thu Sep 20 17:16:16 2018 +0300
@@ -247,7 +247,7 @@
 
 verify subrepo is contained within the repo directory
 
-  $ "$PYTHON" -c "import os.path; print os.path.exists('s')"
+  $ "$PYTHON" -c "from __future__ import print_function; import os.path; print(os.path.exists('s'))"
   True
 
 update to nullrev (must delete the subrepo)