Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit f752f692386faf328c5e091d71d50024ac5b09d0 1 parent b6fe483
Malcolm Tredinnick authored July 29, 2008
5  tests/regressiontests/templates/loaders.py
@@ -14,6 +14,7 @@
14 14
 import pkg_resources
15 15
 import imp
16 16
 import StringIO
  17
+import os.path
17 18
 
18 19
 from django.template import TemplateDoesNotExist
19 20
 from django.template.loaders.eggs import load_template_source as lts_egg
@@ -57,8 +58,8 @@ def setUp(self):
57 58
 
58 59
         self.empty_egg = create_egg("egg_empty", {})
59 60
         self.egg_1 = create_egg("egg_1", {
60  
-            'templates/y.html' : StringIO.StringIO("y"),
61  
-            'templates/x.txt' : StringIO.StringIO("x"),
  61
+            os.path.normcase('templates/y.html') : StringIO.StringIO("y"),
  62
+            os.path.normcase('templates/x.txt') : StringIO.StringIO("x"),
62 63
         })
63 64
         self._old_installed_apps = settings.INSTALLED_APPS
64 65
         settings.INSTALLED_APPS = []

0 notes on commit f752f69

Please sign in to comment.
Something went wrong with that request. Please try again.