summaryrefslogtreecommitdiff
path: root/tests/test_context.py
diff options
context:
space:
mode:
authorjason kirtland <jek@discorporate.us>2011-10-26 21:04:52 -0700
committerjason kirtland <jek@discorporate.us>2011-10-26 21:04:52 -0700
commitb1d5adf43e69a61a6f825a1533933b8b732ff942 (patch)
tree93f0d1bc7475d86484cbb0e42a412bec5e49a104 /tests/test_context.py
parent6ebe7df9412d705b9924332cf706f4036badb539 (diff)
downloadblinker-b1d5adf43e69a61a6f825a1533933b8b732ff942.tar.gz
Upgrade temporarily_connected_to to a deprecation warning.
Diffstat (limited to 'tests/test_context.py')
-rw-r--r--tests/test_context.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/test_context.py b/tests/test_context.py
index 6a9afcd..7521ac3 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -18,21 +18,6 @@ def test_temp_connection():
assert not sig.receivers
-def test_temp_connection_alias():
- sig = Signal()
-
- canary = []
- receiver = lambda sender: canary.append(sender)
-
- sig.send(1)
- with sig.temporarily_connected_to(receiver):
- sig.send(2)
- sig.send(3)
-
- assert canary == [2]
- assert not sig.receivers
-
-
def test_temp_connection_for_sender():
sig = Signal()