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

execute_bear: Improve AssertionError message generation #4418

Closed
yash-nisar opened this Issue Jun 27, 2017 · 0 comments

Comments

2 participants
@yash-nisar
Member

yash-nisar commented Jun 27, 2017

Instead of raise

AssertionError(str(err) + ' \n' + '\n'.join(msg))

use

raise AssertionError(str(err) + ''.join('\n' + m for m in msg))

so if msg is maybe really empty, we don't have a superfluous \n

type/test
area/tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment