summaryrefslogtreecommitdiff
path: root/tests/dispatch
diff options
context:
space:
mode:
authorMateo Radman <48420316+mateoradman@users.noreply.github.com>2021-06-20 20:16:33 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-06-25 06:55:47 +0200
commit8a7ac78b706797a03d26b88eddb9d1067ed35b66 (patch)
treedbba445b3fe90377ffae9e4c605beb0ecb3ae93a /tests/dispatch
parent64839512a6ed04a29e49e246acf8337b1be2cb8e (diff)
downloaddjango-8a7ac78b706797a03d26b88eddb9d1067ed35b66.tar.gz
Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code.
Diffstat (limited to 'tests/dispatch')
-rw-r--r--tests/dispatch/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dispatch/tests.py b/tests/dispatch/tests.py
index 30a9354bba..05b7bdb02f 100644
--- a/tests/dispatch/tests.py
+++ b/tests/dispatch/tests.py
@@ -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)