]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fixed some broken tests
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 2 Jan 2017 20:14:51 +0000 (21:14 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 3 Jan 2017 22:45:29 +0000 (23:45 +0100)
tests/test_ext.py
tests/test_idtracking.py

index f49c09c9acbead93f860c6a9e3fb904e06e22c31..a870d5b5a3e6e6beb366405d0128635c6bc0d68b 100644 (file)
@@ -368,7 +368,7 @@ class TestNewstyleInternationalization():
         # that the generated code does not pass num twice (although that
         # would work) for better performance.  This only works on the
         # newstyle gettext of course
-        assert re.search(r"l_ngettext, u?'\%\(num\)s apple', u?'\%\(num\)s "
+        assert re.search(r"u?'\%\(num\)s apple', u?'\%\(num\)s "
                          r"apples', 3", source) is not None
 
     def test_trans_vars(self):
index 758b4a80c17513ac9ba604d68053ba4c9c2fcb25..537989914ecc945fc69e3924821f25764cf1be3a 100644 (file)
@@ -33,7 +33,7 @@ def test_basics():
         'foo': 'l_1_foo',
     }
     assert sym.loads == {
-        'l_1_foo': ('undefined', None),
+        'l_1_foo': ('param', None),
     }
 
 
@@ -145,7 +145,7 @@ def test_complex():
         'item': 'l_1_item',
     }
     assert for_sym.loads == {
-        'l_1_item': ('undefined', None),
+        'l_1_item': ('param', None),
     }
     assert for_sym.stores == set(['item'])
     assert for_sym.dump_stores() == {
@@ -213,6 +213,6 @@ def test_if_branching_multi_scope():
     assert for_sym.stores == set(['item', 'x'])
     assert for_sym.loads == {
         'l_1_x': ('alias', 'l_0_x'),
-        'l_1_item': ('undefined', None),
+        'l_1_item': ('param', None),
         'l_1_expression': ('resolve', 'expression'),
     }