Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a482cc0 commit 0065d8a120843e843ec139386fac9dd76d721079 @ramiro ramiro committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/regressiontests/views/tests/
4 tests/regressiontests/views/tests/
@@ -1,4 +1,5 @@
import inspect
+import os
import sys
from django.conf import settings
@@ -56,7 +57,8 @@ def test_template_exceptions(self):
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):

0 comments on commit 0065d8a

Please sign in to comment.
Something went wrong with that request. Please try again.