Ticket #7767: egg_templates_win32_fix.diff

File egg_templates_win32_fix.diff, 941 bytes (added by ramiro, 7 years ago)
  • tests/regressiontests/templates/loaders.py

    diff -r 96d127cf52ff tests/regressiontests/templates/loaders.py
    a b  
    1414import pkg_resources
    1515import imp
    1616import StringIO
     17import os.path
    1718
    1819from django.template import TemplateDoesNotExist
    1920from django.template.loaders.eggs import load_template_source as lts_egg
     
    5758
    5859        self.empty_egg = create_egg("egg_empty", {})
    5960        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"),
    6263        })
    6364        self._old_installed_apps = settings.INSTALLED_APPS
    6465        settings.INSTALLED_APPS = []
Back to Top