Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 0065d8a120843e843ec139386fac9dd76d721079 1 parent a482cc0
Ramiro Morales authored May 24, 2011
4  tests/regressiontests/views/tests/debug.py
... ...
@@ -1,4 +1,5 @@
1 1
 import inspect
  2
+import os
2 3
 import sys
3 4
 
4 5
 from django.conf import settings
@@ -56,7 +57,8 @@ def test_template_exceptions(self):
56 57
 
57 58
     def test_template_loader_postmortem(self):
58 59
         response = self.client.get(reverse('raises_template_does_not_exist'))
59  
-        self.assertContains(response, 'templates/i_dont_exist.html</code> (File does not exist)</li>', status_code=500)
  60
+        template_path = os.path.join('templates', 'i_dont_exist.html')
  61
+        self.assertContains(response, template_path, status_code=500)
60 62
 
61 63
 
62 64
 class ExceptionReporterTests(TestCase):

0 notes on commit 0065d8a

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