From d6bfc8be7944bd8495a21d9db065990148e6c466 Mon Sep 17 00:00:00 2001 From: Nick Gashkov Date: Tue, 11 Sep 2018 16:08:19 +0300 Subject: [PATCH] Fix test incompatibility with Python 3 versions Replaced 'print' instruction with call of a 'six' package's implementation compatible with Python 2 as well as Python 3. --- tests/template_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/template_error.py b/tests/template_error.py index 9eb901e..cf6d56f 100644 --- a/tests/template_error.py +++ b/tests/template_error.py @@ -13,7 +13,7 @@ try: except TemplateError as the_error: six.print_(six.text_type(the_error)) if hasattr(the_error, 'docx_context'): - print "Context:" + six.print_("Context:") for line in the_error.docx_context: six.print_(line) tpl.save('test_files/template_error.docx')