[Pkg-bitcoin-commits] [python-quamash] 133/269: Fix test
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository python-quamash.
commit 1b9a5d1cab17814c32d694763b3a99cf59a5da1c
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date: Sat Dec 6 19:17:20 2014 +0100
Fix test
---
tests/test_qeventloop.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_qeventloop.py b/tests/test_qeventloop.py
index 4226c23..0d09055 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -267,10 +267,11 @@ def test_can_add_reader(loop, sock_pair):
client_sock, srv_sock = sock_pair
loop.call_soon(write)
+ exp_num_notifiers = len(loop._read_notifiers) + 1
got_msg = None
fut = asyncio.Future()
loop.add_reader(srv_sock.fileno(), can_read)
- assert len(loop._read_notifiers) == 1, 'Notifier should be added'
+ assert len(loop._read_notifiers) == exp_num_notifiers, 'Notifier should be added'
loop.run_until_complete(asyncio.wait_for(fut, timeout=1.0))
assert got_msg == ref_msg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git
More information about the Pkg-bitcoin-commits
mailing list