[Pkg-bitcoin-commits] [python-quamash] 175/269: #12 - fix subprocess tests handling of carriage returns
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:29 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 0fe93d5f3530304a87058f5883745018b2f29f3e
Author: Mark Harviston <mark.harviston at gmail.com>
Date: Mon Jan 5 17:45:25 2015 -0800
#12 - fix subprocess tests handling of carriage returns
---
tests/test_qeventloop.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_qeventloop.py b/tests/test_qeventloop.py
index ed4ca0f..98e7f09 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -167,7 +167,7 @@ def test_can_read_subprocess(loop):
received_stdout = yield from process.stdout.readexactly(len(b'Hello async world!\n'))
yield from process.wait()
assert process.returncode == 0
- assert received_stdout == b'Hello async world!\n'
+ assert received_stdout.strip() == b'Hello async world!'
loop.run_until_complete(asyncio.wait_for(mycoro(), timeout=3))
@@ -181,7 +181,7 @@ def test_can_communicate_subprocess(loop):
received_stdout, received_stderr = yield from process.communicate(b'Hello async world!\n')
yield from process.wait()
assert process.returncode == 0
- assert received_stdout == b'Hello async world!\n'
+ assert received_stdout.strip() == b'Hello async world!'
loop.run_until_complete(asyncio.wait_for(mycoro(), timeout=3))
--
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