-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fix wrong raise from dict nodes (v1.4.x) #4616
Fix wrong raise from dict nodes (v1.4.x) #4616
Conversation
Codecov Report
@@ Coverage Diff @@
## support/1.4.x #4616 +/- ##
=================================================
+ Coverage 79.22% 79.22% +0.01%
=================================================
Files 475 475
Lines 34828 34831 +3
=================================================
+ Hits 27589 27593 +4
+ Misses 7239 7238 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
So, I already rebased the one that goes into |
Ah damn, didn't realize this is another copy of the same PR. Well I think these tests would have failed as well and will start to fail once we merge it in |
@sphuber Python 3.5 seems to have a problem with numpy
I'm not sure if maybe we need to copy this fix to python 3.5 as well??
|
89b86a1
to
c063609
Compare
When accessing an attribute as a dict (`dictnode['key']`), the error raised was an AttributeError instead of a KeyError, which is rather unusual. This has been fixed and a test that checks the correct error raise has been added.
72ae4a9
to
d489fee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go! Thanks
Fixes #4454
When accessing an attribute as a dict (
dictnode['key']
), the errorraised was an AttributeError instead of a KeyError, which is rather
unusual. This has been fixed and a test that checks the correct error
raise has been added.