added unnecessary-dunder-call to pylintrc files; disabled for certain lines (#655)

in run_tests.py, exception thrown by 'git remote add origin' when the remote already exists will not exit

Signed-off-by: Mark Cohen <[email protected]>
This commit is contained in:
Mark Cohen
2024-01-22 09:12:57 -05:00
committed by GitHub
parent 7c66e8cf3d
commit 6e58837993
8 changed files with 38 additions and 27 deletions
@@ -23,7 +23,7 @@ class TestPluginsClient:
with warnings.catch_warnings(record=True) as w:
client = AsyncOpenSearch()
# testing double-init here
client.plugins.__init__(client) # type: ignore
client.plugins.__init__(client) # type: ignore # pylint: disable=unnecessary-dunder-call
assert (
str(w[0].message)
== "Cannot load `alerting` directly to AsyncOpenSearch as it already exists. Use "