Permalink
Browse files

remove the inheritence forbid from the specs

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...
1 parent 249732f commit 1a644e892fd62ea16b85a00913cd6b5fb3231af9 @tardyp tardyp committed Oct 2, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 master/buildbot/test/unit/test_util_namespace.py
@@ -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))

0 comments on commit 1a644e8

Please sign in to comment.