mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Cleaned up exception message checking in some tests.
This commit is contained in:
@@ -286,7 +286,7 @@ class TestRaiseLastException(SimpleTestCase):
|
||||
exc_info = sys.exc_info()
|
||||
|
||||
with mock.patch('django.utils.autoreload._exception', exc_info):
|
||||
with self.assertRaises(MyException, msg='Test Message'):
|
||||
with self.assertRaisesMessage(MyException, 'Test Message'):
|
||||
autoreload.raise_last_exception()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user