[Pkg-bitcoin-commits] [python-quamash] 134/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 65ea034c26f90930a294d72fa55cb8daf13a0aec
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date:   Sat Dec 6 19:20:22 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 0d09055..db66a27 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -291,8 +291,9 @@ def test_can_remove_reader(loop, sock_pair):
 
 	got_msg = None
 	loop.add_reader(srv_sock.fileno(), can_read)
+	exp_num_notifiers = len(loop._read_notifiers) - 1
 	loop.remove_reader(srv_sock.fileno())
-	assert not loop._read_notifiers, 'Notifier should be removed'
+	assert len(loop._read_notifiers) == exp_num_notifiers, 'Notifier should be removed'
 	client_sock.send(b'a')
 	client_sock.close()
 	# Run for a short while to see if we get a read notification

-- 
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