diff --git a/test/test_option_setting.py b/test/test_option_setting.py index f7a8903..eb5fa44 100644 --- a/test/test_option_setting.py +++ b/test/test_option_setting.py @@ -308,7 +308,7 @@ def test_set_with_unknown_option(): def test_set_symlink_option(): boolopt = BoolOption("b", "", default=False) - linkopt = SymLinkOption("c", "s1.b") + linkopt = SymLinkOption("c", "s1.b", opt=boolopt) descr = OptionDescription("opt", "", [linkopt, OptionDescription("s1", "", [boolopt])]) config = Config(descr) diff --git a/tiramisu/config.py b/tiramisu/config.py index eb60364..5331c1e 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -375,8 +375,10 @@ class Config(object): def __eq__(self, other): "Config comparison" - if not isinstance(other, OptionDescription): + if not isinstance(other, Config): return False + print self.getkey() + print other.getkey() return self.getkey() == other.getkey() def __ne__(self, other):