mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code.
This commit is contained in:
committed by
Mariusz Felisiak
parent
64839512a6
commit
8a7ac78b70
@@ -58,7 +58,7 @@ class DispatcherTests(SimpleTestCase):
|
||||
@override_settings(DEBUG=True)
|
||||
def test_cannot_connect_non_callable(self):
|
||||
msg = 'Signal receivers must be callable.'
|
||||
with self.assertRaisesMessage(AssertionError, msg):
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
a_signal.connect(object())
|
||||
self.assertTestIsClean(a_signal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user