tests on group types

This commit is contained in:
gwen
2012-12-05 09:41:53 +01:00
parent 0db34bbeba
commit 7784a82cde
2 changed files with 3 additions and 6 deletions

View File

@ -97,7 +97,7 @@ class Config(object):
if child._name not in self._cfgimpl_values:
if child.is_multi():
self._cfgimpl_values[child._name] = Multi(
copy(child.getdefault()), config=self, child=child)
copy(child.getdefault()), config=self, opt=child)
else:
self._cfgimpl_values[child._name] = copy(child.getdefault())
child.setowner(self, 'default')
@ -426,7 +426,7 @@ class Config(object):
def __eq__(self, other):
"Config comparison"
if not isinstance(other, OptionDescription):
if not isinstance(other, Config):
return False
return self.getkey() == other.getkey()