trimming options's callbacks

This commit is contained in:
gwen
2012-10-15 15:06:41 +02:00
parent 0bd7624eea
commit b3da043190
4 changed files with 63 additions and 41 deletions

View File

@ -70,7 +70,7 @@ def test_has_callback():
descr = make_description()
# here the owner is 'default'
config = Config(descr, bool=False)
# because dummy has a callback
# because dummy has a callback
dummy = config.unwrap_from_path('gc.dummy')
config.cfgimpl_freeze()
dummy.freeze()
@ -85,8 +85,7 @@ def test_freeze_and_has_callback_with_setoption():
dummy.freeze()
raises(TypeError, "config.gc.setoption('dummy', True, 'gen_config')")
def test_cannot_override():
descr = make_description()
config = Config(descr, bool=False)
raises(TypeError, "config.override({'gc.dummy': True})")
#def test_cannot_override():
# descr = make_description()
# config = Config(descr, bool=False)
# raises(TypeError, "config.override({'gc.dummy': True})")