Code

Ticket #7767: egg_templates_win32_fix.diff

File egg_templates_win32_fix.diff, 941 bytes (added by ramiro, 6 years ago)
Line 
1diff -r 96d127cf52ff tests/regressiontests/templates/loaders.py
2--- a/tests/regressiontests/templates/loaders.py        Tue Jul 15 16:17:49 2008 -0300
3+++ b/tests/regressiontests/templates/loaders.py        Tue Jul 15 19:42:52 2008 -0300
4@@ -14,6 +14,7 @@
5 import pkg_resources
6 import imp
7 import StringIO
8+import os.path
9
10 from django.template import TemplateDoesNotExist
11 from django.template.loaders.eggs import load_template_source as lts_egg
12@@ -57,8 +58,8 @@
13
14         self.empty_egg = create_egg("egg_empty", {})
15         self.egg_1 = create_egg("egg_1", {
16-            'templates/y.html' : StringIO.StringIO("y"),
17-            'templates/x.txt' : StringIO.StringIO("x"),
18+            os.path.normcase('templates/y.html') : StringIO.StringIO("y"),
19+            os.path.normcase('templates/x.txt') : StringIO.StringIO("x"),
20         })
21         self._old_installed_apps = settings.INSTALLED_APPS
22         settings.INSTALLED_APPS = []