diff options
author | Eddie Louie <eddie.louie@mongodb.com> | 2016-09-08 16:48:14 -0400 |
---|---|---|
committer | Eddie Louie <eddie.louie@mongodb.com> | 2016-09-08 16:48:14 -0400 |
commit | 90353265faab62f771cecd21acc8a09a512eee5c (patch) | |
tree | 82e24a0bc28f26aeee241feebbedb7266377d685 /buildscripts/resmokelib | |
parent | 81eaed9d178a63c3dda9ab7574f4ce4130a7d1ec (diff) | |
download | mongo-90353265faab62f771cecd21acc8a09a512eee5c.tar.gz |
SERVER-25127 Remove unused class definition TypeSensitiveSON
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r-- | buildscripts/resmokelib/testing/hooks.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/buildscripts/resmokelib/testing/hooks.py b/buildscripts/resmokelib/testing/hooks.py index ccb3babb3ca..b67987fb8a0 100644 --- a/buildscripts/resmokelib/testing/hooks.py +++ b/buildscripts/resmokelib/testing/hooks.py @@ -261,34 +261,6 @@ class CheckReplDBHash(JsCustomBehavior): shell_options=shell_options) -class TypeSensitiveSON(bson.SON): - """ - Extends bson.SON to perform additional type-checking of document values - to differentiate BSON types. - """ - - def items_with_types(self): - """ - Returns a list of triples. Each triple consists of a field name, a - field value, and a field type for each field in the document. - """ - - return [(key, self[key], type(self[key])) for key in self] - - def __eq__(self, other): - """ - Comparison to another TypeSensitiveSON is order-sensitive and - type-sensitive while comparison to a regular dictionary ignores order - and type mismatches. - """ - - if isinstance(other, TypeSensitiveSON): - return (len(self) == len(other) and - self.items_with_types() == other.items_with_types()) - - raise TypeError("TypeSensitiveSON objects cannot be compared to other types") - - _CUSTOM_BEHAVIORS = { "CleanEveryN": CleanEveryN, "CheckReplDBHash": CheckReplDBHash, |