Skip to content

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

Closed
alanjds opened this issue Aug 21, 2018 · 4 comments · Fixed by #144
Closed

this is not working. because bool(AssertionError) is true #67

alanjds opened this issue Aug 21, 2018 · 4 comments · Fixed by #144
Labels
good first issue Good for newcomers Hacktoberfest Join the Hacktoberfest of Digital Ocean! Send us a PR! imported Imported from google/grumpy

Comments

@alanjds
Copy link

alanjds commented Aug 21, 2018

google#405 opened by @rishatik92 on Jun 6

https://github.com/google/grumpy/blob/3ec87959189cfcdeae82eb68a47648ac25ceb10b/testing/list_test.py#L53

@alanjds alanjds added the imported Imported from google/grumpy label Aug 21, 2018
@alanjds
Copy link
Author

alanjds commented Sep 2, 2018

Sorry @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?

@alanjds alanjds added the waiting feedback Waiting confirmation of changes or fixes label Sep 2, 2018
@rishatik92
Copy link

rishatik92 commented Sep 3, 2018 via email

@alanjds
Copy link
Author

alanjds commented Sep 3, 2018

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 previous line', not assert AssertionError.

Thanks for pointing

@alanjds alanjds added good first issue Good for newcomers and removed waiting feedback Waiting confirmation of changes or fixes labels Sep 3, 2018
@rishatik92
Copy link

rishatik92 commented Sep 3, 2018 via email

@alanjds alanjds added the Hacktoberfest Join the Hacktoberfest of Digital Ocean! Send us a PR! label Oct 2, 2018
Srinivas11789 added a commit to Srinivas11789/grumpy that referenced this issue Oct 26, 2019
Srinivas11789 added a commit to Srinivas11789/grumpy that referenced this issue Dec 20, 2019
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants