PROTON-490: have tests ignore platform-specific line endings
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/45238b46 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/45238b46 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/45238b46 Branch: refs/heads/master Commit: 45238b464507871e732ceb363f8fb23b0abdf8df Parents: 758295d Author: Ken Giusti <[email protected]> Authored: Fri May 1 12:55:38 2015 -0400 Committer: Ken Giusti <[email protected]> Committed: Fri May 1 12:55:38 2015 -0400 ---------------------------------------------------------------------- tests/python/proton_tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/45238b46/tests/python/proton_tests/common.py ---------------------------------------------------------------------- diff --git a/tests/python/proton_tests/common.py b/tests/python/proton_tests/common.py index be9c75a..4f23c13 100644 --- a/tests/python/proton_tests/common.py +++ b/tests/python/proton_tests/common.py @@ -418,7 +418,7 @@ class MessengerReceiver(MessengerApp): def _ready(self): """ wait for subscriptions to complete setup. """ r = self._process.stdout.readline() - assert r == "READY" + os.linesep, "Unexpected input while waiting for receiver to initialize: %s" % r + assert r.strip() == "READY", "Unexpected input while waiting for receiver to initialize: %s" % r class MessengerSenderC(MessengerSender): def __init__(self): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
