This commit is contained in:
2014-01-25 10:15:25 +01:00
parent 3b0b3cdfd9
commit 3b3e5216fe
4 changed files with 84 additions and 54 deletions

View File

@ -68,7 +68,7 @@ def test_deref_optiondescription():
def test_deref_option_cache():
b = BoolOption('b', '')
o = OptionDescription('od', '', [b])
o.impl_build_cache()
o.impl_build_cache_option()
w = weakref.ref(b)
del(b)
assert w() is not None
@ -81,7 +81,7 @@ def test_deref_option_cache():
def test_deref_optiondescription_cache():
b = BoolOption('b', '')
o = OptionDescription('od', '', [b])
o.impl_build_cache()
o.impl_build_cache_option()
w = weakref.ref(o)
del(b)
assert w() is not None
@ -103,6 +103,7 @@ def test_deref_option_config():
#FIXME meme chose
#assert w() is None
#FIXME rien a voir mais si je fais un config.impl_get_path_by_opt() ca me retourne la methode !
def test_deref_optiondescription_config():
b = BoolOption('b', '')