'Loading a template from an egg' Django test fails on Windows
As of r7929 the tests/regressiontests/templates/loaders.py:EggLoader.test_existing
test fails (and possibly has been failing since its implementation back in [7565]):
E:\proj\django\trunk\tests>..\..\..\django_test\django-tests.bat
======================================================================
ERROR: A template can be loaded from an egg
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\proj\django\trunk\tests\regressiontests\templates\loaders.py", line 8
2, in test_existing
contents, template_name = lts_egg("y.html")
File "E:\proj\django\trunk\django\template\loaders\eggs.py", line 24, in load_
template_source
raise TemplateDoesNotExist, template_name
TemplateDoesNotExist: y.html
The problem is located in the test itself and is related to the differences in path separator. The attached patch fixes it.
Looks good to me.