summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):