Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@malcolmt malcolmt authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/regressiontests/templates/loaders.py
View
5 tests/regressiontests/templates/loaders.py
@@ -14,6 +14,7 @@
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 @@ def setUp(self):
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 = []
Please sign in to comment.
Something went wrong with that request. Please try again.