forked from alanjds/grumpy
-
Notifications
You must be signed in to change notification settings - Fork 18
this is not working. because bool(AssertionError) is true #67
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
Labels
good first issue
Good for newcomers
Hacktoberfest
Join the Hacktoberfest of Digital Ocean! Send us a PR!
imported
Imported from google/grumpy
Comments
Sorry @rishatik92, I do not understand what is wrong:
This seems just right. Can you elaborate please? |
i was just want to say that assert AssertionError - will never raised
because:
>> bool(AssertionError) True
пн, 3 сент. 2018 г. в 1:52, Alan Justino da Silva <[email protected]
…:
Sorry @rishatik92 <https://github.com/rishatik92>, I do not understand
what is wrong:
$ python -c 'print bool(AssertionError)'
True
$ grumpy -c 'print bool(AssertionError)'
True
This seems just right. Can you elaborate please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC91rdIpj_EAMFHrzMHwX4VRO6qgnzMjks5uXGE6gaJpZM4WE_UO>
.
|
I see. It looks to be testing if the Thanks for pointing |
)) glad to help
пн, 3 сент. 2018 г. в 16:54, Alan Justino da Silva <[email protected]
…:
I see. It looks to be testing if the list exceptions are being raised
correctly. The test should be doing assert False, 'an exception should
raise on last line, not assert AssertionError.
Thanks for pointing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC91rWtFpwNPhUrdHDr-G127FqU8PLWFks5uXTShgaJpZM4WE_UO>
.
|
Srinivas11789
added a commit
to Srinivas11789/grumpy
that referenced
this issue
Oct 26, 2019
…pective error string
Srinivas11789
added a commit
to Srinivas11789/grumpy
that referenced
this issue
Dec 20, 2019
…pective error string
alanjds
added a commit
that referenced
this issue
Dec 27, 2019
fixes issue #67 - replace AssertionError with False and respective error string
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Good for newcomers
Hacktoberfest
Join the Hacktoberfest of Digital Ocean! Send us a PR!
imported
Imported from google/grumpy
google#405 opened by @rishatik92 on Jun 6
https://github.com/google/grumpy/blob/3ec87959189cfcdeae82eb68a47648ac25ceb10b/testing/list_test.py#L53
The text was updated successfully, but these errors were encountered: