summaryrefslogtreecommitdiff
path: root/tests/dispatch
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dispatch')
-rw-r--r--tests/dispatch/test_removedindjango20.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/dispatch/test_removedindjango20.py b/tests/dispatch/test_removedindjango20.py
deleted file mode 100644
index 9b28cf789d..0000000000
--- a/tests/dispatch/test_removedindjango20.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import warnings
-
-from django.dispatch import Signal
-from django.test import SimpleTestCase
-
-a_signal = Signal(providing_args=['val'])
-
-
-def receiver_1_arg(val, **kwargs):
- return val
-
-
-class DispatcherTests(SimpleTestCase):
-
- def test_disconnect_weak_deprecated(self):
- a_signal.connect(receiver_1_arg)
- with warnings.catch_warnings(record=True) as warns:
- warnings.simplefilter('always')
- a_signal.disconnect(receiver_1_arg, weak=True)
- self.assertEqual(len(warns), 1)
- self.assertEqual(
- str(warns[0].message),
- 'Passing `weak` to disconnect has no effect.',
- )