diff options
| author | Tim Graham <timograham@gmail.com> | 2019-01-18 10:04:29 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-30 10:19:48 -0500 |
| commit | 7e6b214ed34f5562dbd83cf54924a5b589a29715 (patch) | |
| tree | 2a2aa16c023638436bea449acdb06224bf7f33c7 /tests/view_tests | |
| parent | 5a5c77d55dc85c7e6cf910243257e408887f412a (diff) | |
Fixed #30116 -- Dropped support for Python 3.5.
Diffstat (limited to 'tests/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index db23d10d32..1ff1220803 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -17,7 +17,6 @@ from django.test.utils import LoggingCaptureMixin from django.urls import path, reverse from django.utils.functional import SimpleLazyObject from django.utils.safestring import mark_safe -from django.utils.version import PY36 from django.views.debug import ( CLEANSED_SUBSTITUTE, CallableSettingWrapper, ExceptionReporter, cleanse_setting, technical_500_response, @@ -515,7 +514,7 @@ class ExceptionReporterTests(SimpleTestCase): exc_type, exc_value, tb = sys.exc_info() reporter = ExceptionReporter(request, exc_type, exc_value, tb) html = reporter.get_traceback_html() - self.assertInHTML('<h1>%sError at /test_view/</h1>' % ('ModuleNotFound' if PY36 else 'Import'), html) + self.assertInHTML('<h1>ModuleNotFoundError at /test_view/</h1>', html) def test_ignore_traceback_evaluation_exceptions(self): """ |
