1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

python:tests: Raise exception of more specific type NotImplementedError

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-12-08 10:30:14 +13:00 committed by Andrew Bartlett
parent 3b15035453
commit 6256ad7442

View 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.