tests:docs: add a exceptions set
authorRalph Boehme <slow@samba.org>
Mon, 3 Dec 2018 14:44:22 +0000 (15:44 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 6 Dec 2018 00:43:13 +0000 (01:43 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/docs.py

index f25df4368316c3f74d1cf165d56e0841c5c49423..b64f9726367131fddb8b7b5329787decf2100537 100644 (file)
@@ -244,7 +244,12 @@ class SmbDotConfTests(TestCase):
         for tuples in self.defaults:
             param, default, context, param_type = tuples
 
-            if param in ['printing', 'rpc server dynamic port range']:
+            exceptions = set([
+                'printing',
+                'rpc server dynamic port range',
+            ])
+
+            if param in exceptions:
                 continue
 
             section = None