-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Better error message on syntax errors. #154
Labels
type: enhancement
new feature or API change, should be merged into features branch
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): works in recent py.test |
pytestbot
added
the
type: enhancement
new feature or API change, should be merged into features branch
label
Jun 15, 2015
fkohlgrueber
pushed a commit
to fkohlgrueber/pytest
that referenced
this issue
Oct 27, 2018
fkohlgrueber
pushed a commit
to fkohlgrueber/pytest
that referenced
this issue
Oct 27, 2018
… and decorators) Fixes pytest-dev#56 Fixes pytest-dev#154
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by: Jurko Gospodnetić (BitBucket: jurko, GitHub: jurko)
When pytest is run on the following module:
It reports a confusing error message:
While when that same module is run directly it reports a clearer:
On other types of errors (e.g. replace the last line of the initial script with just 'foo'), error messages returned by pytest & direct Python calls match.
Can the error message presented by pytest be improved?
Tested using pytest 2.2.4 on Windows 7 x64 with 64bit Python 3.2.3.
Best regards,
Jurko Gospodnetić
The text was updated successfully, but these errors were encountered: