diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-07 17:42:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-07 17:42:31 -0500 |
| commit | b5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0 (patch) | |
| tree | f3eb61bfdcf45c7b27fe3c480e9a7533746d1aad /tests/urlpatterns_reverse | |
| parent | f909fa84bedb51778a175aadfe4cfe7a91fe06cd (diff) | |
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
Diffstat (limited to 'tests/urlpatterns_reverse')
| -rw-r--r-- | tests/urlpatterns_reverse/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index ca894fcc8e..4b31e382e1 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -1005,7 +1005,7 @@ class ViewLoadingTests(SimpleTestCase): def test_exceptions(self): # A missing view (identified by an AttributeError) should raise # ViewDoesNotExist, ... - with six.assertRaisesRegex(self, ViewDoesNotExist, ".*View does not exist in.*"): + with self.assertRaisesMessage(ViewDoesNotExist, "View does not exist in"): get_callable('urlpatterns_reverse.views.i_should_not_exist') # ... but if the AttributeError is caused by something else don't # swallow it. |
