diff options
author | Mateo Radman <48420316+mateoradman@users.noreply.github.com> | 2021-06-20 20:16:33 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-06-25 06:55:47 +0200 |
commit | 8a7ac78b706797a03d26b88eddb9d1067ed35b66 (patch) | |
tree | dbba445b3fe90377ffae9e4c605beb0ecb3ae93a /tests/dispatch | |
parent | 64839512a6ed04a29e49e246acf8337b1be2cb8e (diff) | |
download | django-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.py | 2 |
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) |