mirror of https://github.com/django/django.git
Made expected output platform-independent in a test for the template postmortem debug 500 view so it doesn't fail under Windows.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a482cc0ba3
commit
0065d8a120
|
@ -1,4 +1,5 @@
|
|||
import inspect
|
||||
import os
|
||||
import sys
|
||||
|
||||
from django.conf import settings
|
||||
|
@ -56,7 +57,8 @@ class DebugViewTests(TestCase):
|
|||
|
||||
def test_template_loader_postmortem(self):
|
||||
response = self.client.get(reverse('raises_template_does_not_exist'))
|
||||
self.assertContains(response, 'templates/i_dont_exist.html</code> (File does not exist)</li>', status_code=500)
|
||||
template_path = os.path.join('templates', 'i_dont_exist.html')
|
||||
self.assertContains(response, template_path, status_code=500)
|
||||
|
||||
|
||||
class ExceptionReporterTests(TestCase):
|
||||
|
|
Loading…
Reference in New Issue