summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-29 06:05:15 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-29 06:05:15 +0000
commitf752f692386faf328c5e091d71d50024ac5b09d0 (patch)
tree9a73e0fb0bd5fd4c42c7870aa9331e0c2407724f
parentb6fe483bf5783a72fdfbe55463b9490496da1fa3 (diff)
Fixed #7767 -- Fixed template egg loading test for Windows systems.
Thanks, Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/templates/loaders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/regressiontests/templates/loaders.py b/tests/regressiontests/templates/loaders.py
index db37116b94..fdaf9ac83f 100644
--- a/tests/regressiontests/templates/loaders.py
+++ b/tests/regressiontests/templates/loaders.py
@@ -14,6 +14,7 @@ import sys
import pkg_resources
import imp
import StringIO
+import os.path
from django.template import TemplateDoesNotExist
from django.template.loaders.eggs import load_template_source as lts_egg
@@ -57,8 +58,8 @@ class EggLoader(unittest.TestCase):
self.empty_egg = create_egg("egg_empty", {})
self.egg_1 = create_egg("egg_1", {
- 'templates/y.html' : StringIO.StringIO("y"),
- 'templates/x.txt' : StringIO.StringIO("x"),
+ os.path.normcase('templates/y.html') : StringIO.StringIO("y"),
+ os.path.normcase('templates/x.txt') : StringIO.StringIO("x"),
})
self._old_installed_apps = settings.INSTALLED_APPS
settings.INSTALLED_APPS = []