expect_output result unusual when output not actually multiline #232
Milestone
Comments
I couldn't reproduce your problem exactly, but I'm pretty sure this fixes the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm writing tests for a function that has an option to use alternate end-of-line characters, and had a bit of fun writing a test for this.
Testing against a
\n
end-of-line withexpect_output
works fine.When I change end-of-line to
\r
and test against that withexpect_output
, I get odd output as if there's some buffer contents left over. It looks like the output of the previous test, followed by the match pattern of the current test with the pairs of 3s separated by carriage-return.I can get the test I want if the function is wrapped with
capture.output
and tested withexpect_match
.The text was updated successfully, but these errors were encountered: