-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing trailing : on emitted with statement #18
Comments
I suspect it is failing on |
Can you please provide a minimal example and use context-diff. I can't spot what is changed here. Thanks. |
The problem is that within
the
Easy As a quick solution we could do this when converting the code
Help wanted: In the long-run:
|
FWIW since with self.assertRaisesRegex(SystemExit, '2') as cm: Can be rewritten directly as: with pytest.raises(SystemExit, match='2') as cm: |
Using the I'm fine with this, since any project converting now ought not have "pinned" to a specific version of pytest. But we should be aware of this, decide about it and document. For the records: Even if the docs say this was added in 2.10, the changelog says it was added in 3.1.0 (2017-05-22) |
Oops thanks for catching that, I will fix it in the docs. 👍 |
xref: pytest-dev/pytest#2697 |
The tool chokes on https://github.com/coala/coala/blob/8a25983/tests/parsing/CliParsingTest.py#L58
Somehow it writes
with
statements without a trailing:
.The result is naturally a syntax error: https://travis-ci.org/jayvdb/coala/jobs/246949584#L9068
The text was updated successfully, but these errors were encountered: