-
Notifications
You must be signed in to change notification settings - Fork 218
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
Added support for OrderedDict validation, including as the return type #256
Conversation
@@ -1,6 +1,7 @@ | |||
import copy | |||
import collections | |||
from nose.tools import assert_equal, assert_raises, assert_true | |||
import numpy |
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.
Please don't add numpy as a dependency, even for tests.
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.
fair point, I'll remove it
|
||
|
||
def test_ordered_dict(): | ||
if not hasattr(collections, 'OrderedDict'): |
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.
I'm fine with this (to answer your earlier question).
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.
great
I think I've addressed your comments, but I'm not sure if I need to do anything else here. |
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.
The change looks fine. Please squash the commits.
ok, squashed |
This addresses #254, which I created earlier. The fix is pretty simple, sorry for the stupid formatting stuff, I can get rid of those changes as you desire.
One thing I thought was going to be an isuses was ensuring that
data
is adict
; however, that is already done in thevalidate_dict
closure (right?).... this is basically the same as a request I had before, except I added a conditional for Python2.6