summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-28 07:55:27 -0400
committerTim Graham <timograham@gmail.com>2015-04-28 07:55:27 -0400
commit3b133ffb8bdf1e0e4c3f2c3af8a62376da643350 (patch)
treee346660f4f004fc7cb83528a5fab96b51bf1f1be /tests
parent4870b304f2eabee3ec761f2d94b6251cae418f49 (diff)
Fixed template_tests failure on Windows.
Diffstat (limited to 'tests')
-rw-r--r--tests/template_tests/test_extends.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/template_tests/test_extends.py b/tests/template_tests/test_extends.py
index 48290547e7..9e56d69db4 100644
--- a/tests/template_tests/test_extends.py
+++ b/tests/template_tests/test_extends.py
@@ -86,7 +86,8 @@ class ExtendsBehaviorTests(SimpleTestCase):
cache = engine.template_loaders[0].get_template_cache
self.assertEqual(len(cache), 3)
- self.assertTrue(cache['recursive.html'].origin.name.endswith('fs/recursive.html'))
+ expected_path = os.path.join('fs', 'recursive.html')
+ self.assertTrue(cache['recursive.html'].origin.name.endswith(expected_path))
# Render another path that uses the same templates from the cache
template = engine.get_template('other-recursive.html')
@@ -95,7 +96,8 @@ class ExtendsBehaviorTests(SimpleTestCase):
# Template objects should not be duplicated.
self.assertEqual(len(cache), 4)
- self.assertTrue(cache['other-recursive.html'].origin.name.endswith('fs/other-recursive.html'))
+ expected_path = os.path.join('fs', 'other-recursive.html')
+ self.assertTrue(cache['other-recursive.html'].origin.name.endswith(expected_path))
def test_unique_history_per_loader(self):
"""