]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Raise exception of more specific type NotImplementedError
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 7 Dec 2023 21:30:14 +0000 (10:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 21 Dec 2023 20:21:34 +0000 (20:21 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py

index ccc36e6172c0e4efceefc20fa30e2b414b70b38d..6a28c0de4c0684bce63736b9880edd50a293c4ce 100644 (file)
@@ -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.