1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code.

This commit is contained in:
Mateo Radman
2021-06-20 20:16:33 +02:00
committed by Mariusz Felisiak
parent 64839512a6
commit 8a7ac78b70
7 changed files with 36 additions and 11 deletions

View File

@@ -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)