From: Joseph Sutton Date: Wed, 16 Aug 2023 22:22:35 +0000 (+1200) Subject: python:tests: Make getSamDB() a static method X-Git-Tag: tevent-0.16.0~884 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a985873c46fb527296e4e9b9371b397d3c2baba5;p=thirdparty%2Fsamba.git python:tests: Make getSamDB() a static method Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/samba_tool/base.py b/python/samba/tests/samba_tool/base.py index 76299f8023d..a5d890a2afd 100644 --- a/python/samba/tests/samba_tool/base.py +++ b/python/samba/tests/samba_tool/base.py @@ -42,7 +42,8 @@ class SambaToolCmdTest(samba.tests.BlackboxTestCase): # override if they need to (to e.g. add a lying isatty() method). stringIO = StringIO - def getSamDB(self, *argv): + @staticmethod + def getSamDB(*argv): """a convenience function to get a samdb instance so that we can query it""" # We build a fake command to get the options created the same