summaryrefslogtreecommitdiff
path: root/test/test_def.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_def.py')
-rw-r--r--test/test_def.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test_def.py b/test/test_def.py
index 99b929d..6505c1f 100644
--- a/test/test_def.py
+++ b/test/test_def.py
@@ -1,9 +1,7 @@
-from mako import compat
from mako import lookup
from mako.template import Template
from test import assert_raises
from test import eq_
-from test import requires_python_3
from test import TemplateTest
from test.util import flatten_result
from test.util import result_lines
@@ -49,7 +47,6 @@ class DefTest(TemplateTest):
"""hello mycomp hi, 5, 6""",
)
- @requires_python_3
def test_def_py3k_args(self):
template = Template(
"""
@@ -86,12 +83,8 @@ class DefTest(TemplateTest):
"""
)
# check that "a" is declared in "b", but not in "c"
- if compat.py3k:
- assert "a" not in template.module.render_c.__code__.co_varnames
- assert "a" in template.module.render_b.__code__.co_varnames
- else:
- assert "a" not in template.module.render_c.func_code.co_varnames
- assert "a" in template.module.render_b.func_code.co_varnames
+ assert "a" not in template.module.render_c.__code__.co_varnames
+ assert "a" in template.module.render_b.__code__.co_varnames
# then test output
eq_(flatten_result(template.render()), "im b and heres a: im a")