-
Notifications
You must be signed in to change notification settings - Fork 580
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 assertRaises with assertRaisesRegex #1194
Comments
Check the AssertionError exception message. Addresses coala#1194
Check the AssertionError exception message. Addresses coala#1194
Check the AssertionError exception message. Related to coala#1194
Check the AssertionError exception message. Related to coala#1194
I'll grab this for now... |
@Mixih this is a GCI task. |
@jayvdb you can assert for the message with
|
That isnt being done in |
I have replaced assertRaises() with assertRaisesRegex() for the DartLintBear script [found in tests/dart/DartLintBearTest.py].
I have replaced assertRaises() with assertRaisesRegex() for the DartLintBear script [found in tests/dart/DartLintBearTest.py].
…x()` I have replaced `assertRaises()` with `assertRaisesRegex()` as `assertRaises()` is always lazy. Link to issue: coala#1194
I have replaced `assertRaises()` with `assertRaisesRegex()` as `assertRaises()` is always lazy. Link to issue: coala#1194
I have replaced `assertRaises()` with `assertRaisesRegex()` as `assertRaises()` is always lazy. Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Fixes coala#1194
Replaced `assertRaises()` Closes coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
Check the AssertionError exception message. Related to coala/coala-bears#1194
Note that there are three left, all in clang bears. So, make sure you have clang tests working before trying to assign yourself to this task, as it is hard if the clang bear tests are being skipped. |
On running command: py.test -k c_languages
I've inserted the following line at ClangASTPrintBearTest.py:29 |
It's being skipped, that's why your |
@shreyans800755 , See #1194 (comment) . As you do not have clang working, you should do coala/coala#3374 instead. |
@shreyans800755 well to skip ,you need to change the code in your own repo and run. Although here clang is an essential so sorry you can't remove it. |
Check the AssertionError exception message. Related to coala#1194
Replaced `assertRaises()` Closes coala#1194
`assertRaisesRegex` is used over `assertRaises` to validate the error message to confirm the type of error that occured during execution. Related to coala#1194
unittest.assertRaises
is always lazy, and should be avoided.unitest.assertRaisesRegex
has an extra parameter to check the exception message, and should be used instead.It is only used in six test files:
The
CheckstyleBearTest
case overlaps slightly with #1192The text was updated successfully, but these errors were encountered: