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:
parent
3b15035453
commit
6256ad7442
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user