summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-05-24 21:33:32 +0000
committerRamiro Morales <cramm0@gmail.com>2011-05-24 21:33:32 +0000
commit0065d8a120843e843ec139386fac9dd76d721079 (patch)
tree739fcf9f39be20b7e5f1d8b2b4cf061f367c2440
parenta482cc0ba38febda15194dc121989eed3b6deec2 (diff)
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
-rw-r--r--tests/regressiontests/views/tests/debug.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/views/tests/debug.py b/tests/regressiontests/views/tests/debug.py
index d77831122a..6dd4bd4934 100644
--- a/tests/regressiontests/views/tests/debug.py
+++ b/tests/regressiontests/views/tests/debug.py
@@ -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):