summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-14 12:03:45 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-14 12:29:53 +0200
commitdcf72835e358529571dba53af1451fb39ce36c6b (patch)
tree19a6231d93321ec7edc3ac115ae4b2a246c5ef69
parentfaf570df187bc82a3bcffa5613165a6e6cc56a57 (diff)
[py3] Ensured the template tests run.
-rw-r--r--tests/regressiontests/templates/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
index 6ae5af56af..a3be96cd62 100644
--- a/tests/regressiontests/templates/tests.py
+++ b/tests/regressiontests/templates/tests.py
@@ -408,8 +408,7 @@ class Templates(unittest.TestCase):
)
failures = []
- tests = template_tests.items()
- tests.sort()
+ tests = sorted(template_tests.items())
# Turn TEMPLATE_DEBUG off, because tests assume that.
old_td, settings.TEMPLATE_DEBUG = settings.TEMPLATE_DEBUG, False
@@ -418,7 +417,7 @@ class Templates(unittest.TestCase):
old_invalid = settings.TEMPLATE_STRING_IF_INVALID
expected_invalid_str = 'INVALID'
- #Set ALLOWED_INCLUDE_ROOTS so that ssi works.
+ # Set ALLOWED_INCLUDE_ROOTS so that ssi works.
old_allowed_include_roots = settings.ALLOWED_INCLUDE_ROOTS
settings.ALLOWED_INCLUDE_ROOTS = (
os.path.dirname(os.path.abspath(__file__)),