Django

Code

Changeset 8135

Show
Ignore:
Timestamp:
07/29/08 01:05:15 (4 months ago)
Author:
mtredinnick
Message:

Fixed #7767 -- Fixed template egg loading test for Windows systems.
Thanks, Ramiro Morales.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/templates/loaders.py

    r7750 r8135  
    1515import imp 
    1616import StringIO 
     17import os.path 
    1718 
    1819from django.template import TemplateDoesNotExist 
     
    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