Skip to content
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

Replace logging.exception with logging.error #1038

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unnonouno
Copy link

@unnonouno unnonouno commented Mar 8, 2017

When I used nosetests command with --stop option, I failed to run my test, and it raises an exception.
And, I found that logging.exception must be called from only except clause. So I replaced it with logging.error.
https://docs.python.org/2/library/logging.html#logging.Logger.exception

I used python 3.4.5 and nose 1.3.7. You can easily reproduce the same problem with three test case sources which always fail and run nosetests --processes=2 --stop.

logging.exception must be called from except clause. In other case logging.error must be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant