initialize valid_values separately, not using base class __init__ parameter

This commit is contained in:
Patric Schmitz 2015-11-27 16:27:43 +01:00
parent c322130dc0
commit c14b52f916

View File

@ -249,9 +249,8 @@ class BadMappingSubclass(configtypes.MappingType):
}
def __init__(self, none_ok=False):
super().__init__(
none_ok,
valid_values = configtypes.ValidValues('one', 'two'))
super().__init__(none_ok)
self.valid_values = configtypes.ValidValues('one', 'two'))
class TestMappingType: