summaryrefslogtreecommitdiff
path: root/test/test_inheritance.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-09-13 23:09:06 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-10-23 11:11:48 +0200
commita1d70afb5974125a1a65f590418c7c371bbdb3e6 (patch)
tree0f4d4ef4170e963aa6784a222e192d16ba753e21 /test/test_inheritance.py
parent09cf4f68a7f7f63c2f249d61d7cc6600afe12c1a (diff)
downloadmako-workflow_test_initial_1_2.tar.gz
- remove python 2 support - add github workflows - remove disable unicode - cleanup compat file - modernize setup - use pep517 Change-Id: Ic38dbf478046cec5d0815b468f0c235b4ea5e20c
Diffstat (limited to 'test/test_inheritance.py')
-rw-r--r--test/test_inheritance.py24
1 files changed, 7 insertions, 17 deletions
diff --git a/test/test_inheritance.py b/test/test_inheritance.py
index e8ed74e..7217e33 100644
--- a/test/test_inheritance.py
+++ b/test/test_inheritance.py
@@ -1,6 +1,5 @@
import unittest
-from mako import compat
from mako import lookup
from test.util import result_lines
@@ -257,22 +256,13 @@ ${next.body()}
""",
)
- if compat.py3k:
- assert result_lines(
- collection.get_template("index").render_unicode(x=5, y=10)
- ) == [
- "this is the base.",
- "pageargs: (type: <class 'dict'>) [('x', 5), ('y', 10)]",
- "print 5, 10, 7",
- ]
- else:
- assert result_lines(
- collection.get_template("index").render_unicode(x=5, y=10)
- ) == [
- "this is the base.",
- "pageargs: (type: <type 'dict'>) [('x', 5), ('y', 10)]",
- "print 5, 10, 7",
- ]
+ assert result_lines(
+ collection.get_template("index").render_unicode(x=5, y=10)
+ ) == [
+ "this is the base.",
+ "pageargs: (type: <class 'dict'>) [('x', 5), ('y', 10)]",
+ "print 5, 10, 7",
+ ]
def test_pageargs_2(self):
collection = lookup.TemplateLookup()