Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[py3] Ensured the template tests run.

  • Loading branch information...
commit dcf72835e358529571dba53af1451fb39ce36c6b 1 parent faf570d
@aaugustin aaugustin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/regressiontests/templates/tests.py
View
5 tests/regressiontests/templates/tests.py
@@ -408,8 +408,7 @@ def test_templates(self):
)
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 @@ def test_templates(self):
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__)),
Please sign in to comment.
Something went wrong with that request. Please try again.