[Python-modules-commits] [mako] 01/03: update tests for Pygments 2.2

Piotr Ożarowski piotr at moszumanska.debian.org
Tue Feb 7 21:31:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

piotr pushed a commit to branch master
in repository mako.

commit 2f48e82d793202903f52b65cc0e345b4efa36588
Author: Gilles Filippini <pini at debian.org>
Date:   Tue Feb 7 22:21:58 2017 +0100

    update tests for Pygments 2.2
---
 test/test_exceptions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_exceptions.py b/test/test_exceptions.py
index 8321b25..bcaae3b 100644
--- a/test/test_exceptions.py
+++ b/test/test_exceptions.py
@@ -91,7 +91,7 @@ ${u'привет'}
                 assert "".encode(sys.getdefaultencoding(),
                                         'htmlentityreplace') in html_error
             else:
-                assert 'u''\
+                assert '''\
                         '&#x43F;&#x440;&#x438;&#x432;&#x435;&#x442;'\
                         ''</span><span class="cp">}</span>'.encode(
                                 sys.getdefaultencoding(),
@@ -220,7 +220,7 @@ ${foobar}
             assert ''привет'</span>' in \
                 l.get_template("foo.html").render().decode('utf-8')
         else:
-            assert 'u'&#x43F;&#x440;&#x438;&#x432;'\
+            assert ''&#x43F;&#x440;&#x438;&#x432;'\
                     '&#x435;&#x442;'</span>' in \
                 l.get_template("foo.html").render().decode('utf-8')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/mako.git



More information about the Python-modules-commits mailing list