summaryrefslogtreecommitdiff
path: root/test/regress/B21BF389.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/B21BF389.py')
-rw-r--r--test/regress/B21BF389.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/regress/B21BF389.py b/test/regress/B21BF389.py
index 707ce340..a49c498c 100644
--- a/test/regress/B21BF389.py
+++ b/test/regress/B21BF389.py
@@ -3,7 +3,11 @@
from __future__ import print_function, unicode_literals
+import sys
import ledger
for post in ledger.read_journal(__file__.replace(".py", "_py.test")).query("income"):
- print(unicode(post.tag("Reference")))
+ reference = post.tag("Reference")
+ if sys.version_info.major == 2:
+ reference = unicode(reference)
+ print(reference)