From: Joseph Sutton Date: Thu, 7 Dec 2023 21:30:14 +0000 (+1300) Subject: python:tests: Raise exception of more specific type NotImplementedError X-Git-Tag: talloc-2.4.2~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6256ad7442691f038856dd4fc09cf1e5c6f94fc1;p=thirdparty%2Fsamba.git python:tests: Raise exception of more specific type NotImplementedError Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index ccc36e6172c..6a28c0de4c0 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -165,7 +165,7 @@ class TestCase(unittest.TestCase): In order to implement autogenerated testcase permutations. """ msg = "%s needs setUpDynamicTestCases() if @DynamicTestCase is used!" % (cls) - raise Exception(msg) + raise NotImplementedError(msg) def unique_name(self): """Generate a unique name from within a test for creating objects.