diff options
Diffstat (limited to 'tests/urlpatterns_reverse/tests.py')
| -rw-r--r-- | tests/urlpatterns_reverse/tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index ff204c5650..7f565fe487 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -1067,7 +1067,12 @@ class NoRootUrlConfTests(SimpleTestCase): """Tests for handler404 and handler500 if ROOT_URLCONF is None""" def test_no_handler_exception(self): - with self.assertRaises(ImproperlyConfigured): + msg = ( + "The included URLconf 'None' does not appear to have any patterns " + "in it. If you see valid patterns in the file then the issue is " + "probably caused by a circular import." + ) + with self.assertRaisesMessage(ImproperlyConfigured, msg): self.client.get('/test/me/') |
