Skip to content

Commit

Permalink
remove the inheritence forbid from the specs
Browse files Browse the repository at this point in the history
Implementing it will impact performance
http://code.activestate.com/recipes/141933-forbidding-inheritance/


Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
  • Loading branch information
Pierre Tardy committed Oct 2, 2012
1 parent 249732f commit 1a644e8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions master/buildbot/test/unit/test_util_namespace.py
Expand Up @@ -65,11 +65,6 @@ def test_list(self):
for i in n:
self.assertEqual(i.a.b.c, i.a.b.c)

def test_cannot_inherit(self):
class myNamespace(namespace.Namespace):
pass
self.assertRaises(ValueError,lambda : myNamespace({'a':{'b':{'c':1}}}))

def test_jsondump(self):
s = '[{"a": {"b": {"c": 1}}}, {"a": {"b": {"c": 2}}}]'
n = namespace.Namespace(json.loads(s))
Expand Down

0 comments on commit 1a644e8

Please sign in to comment.