summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2016-01-27 10:44:41 +0100
committerJohn Wiegley <johnw@newartisans.com>2019-12-05 15:06:44 +0100
commite1bba5d977a8b9385e9ffdb05861833485003d23 (patch)
tree40876bb3d289ced0fd871e94cc9e79c9e934327b /test/baseline
parente264eb618b8eabf9670084f40687af916a63567e (diff)
downloadfork-ledger-e1bba5d977a8b9385e9ffdb05861833485003d23.tar.gz
fork-ledger-e1bba5d977a8b9385e9ffdb05861833485003d23.tar.bz2
fork-ledger-e1bba5d977a8b9385e9ffdb05861833485003d23.zip
Make tests scripts Python 3 compatible
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/feat-option_py.test4
-rw-r--r--test/baseline/feat-value_py.test3
2 files changed, 4 insertions, 3 deletions
diff --git a/test/baseline/feat-option_py.test b/test/baseline/feat-option_py.test
index 1b2a0c79..77a75660 100644
--- a/test/baseline/feat-option_py.test
+++ b/test/baseline/feat-option_py.test
@@ -1,9 +1,9 @@
python
def option_pyfirst(context):
- print "In --pyfirst (from %s)" % context
+ print("In --pyfirst (from %s)" % context)
def option_pysecond(context, val):
- print "In --pysecond=%s (from %s)" % (val, context)
+ print("In --pysecond=%s (from %s)" % (val, context))
--pyfirst
--pysecond Hey
diff --git a/test/baseline/feat-value_py.test b/test/baseline/feat-value_py.test
index 5efe315d..2f351d2a 100644
--- a/test/baseline/feat-value_py.test
+++ b/test/baseline/feat-value_py.test
@@ -1,6 +1,7 @@
python
+ from __future__ import print_function
def print_type(val):
- print type(val), val
+ print(type(val), val)
eval print_type(true)
eval print_type([2010/08/10])