From 6256ad7442691f038856dd4fc09cf1e5c6f94fc1 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 8 Dec 2023 10:30:14 +1300 Subject: [PATCH] python:tests: Raise exception of more specific type NotImplementedError Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.47.3