tests/test-ui-config.py
changeset 34858 85a2db47ad50
parent 32449 0ed730f3301c
child 37519 3740d1abde44
--- a/tests/test-ui-config.py	Tue Oct 17 21:15:31 2017 +0200
+++ b/tests/test-ui-config.py	Mon Oct 16 17:41:27 2017 +0200
@@ -6,6 +6,15 @@
 )
 
 testui = uimod.ui.load()
+
+# disable the configuration registration warning
+#
+# the purpose of this test is to check the old behavior, not to validate the
+# behavior from registered item. so we silent warning related to unregisted
+# config.
+testui.setconfig('devel', 'warn-config-unknown', False, 'test')
+testui.setconfig('devel', 'all-warnings', False, 'test')
+
 parsed = dispatch._parseconfig(testui, [
     'values.string=string value',
     'values.bool1=true',