summaryrefslogtreecommitdiff
path: root/tests
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
parent6ebe7df9412d705b9924332cf706f4036badb539 (diff)
downloadblinker-b1d5adf43e69a61a6f825a1533933b8b732ff942.tar.gz
Upgrade temporarily_connected_to to a deprecation warning.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_context.py15
-rw-r--r--tests/test_signals.py2
2 files changed, 1 insertions, 16 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()
diff --git a/tests/test_signals.py b/tests/test_signals.py
index 1ab65d2..094ee94 100644
--- a/tests/test_signals.py
+++ b/tests/test_signals.py
@@ -441,4 +441,4 @@ if sys.version_info < (2, 5):
sig = blinker.Signal()
receiver = lambda sender: None
- assert_raises(RuntimeError, sig.temporarily_connected_to, receiver)
+ assert_raises(RuntimeError, sig.connected_to, receiver)