mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pytest:sddl: handle SDDLValueError
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
328ddf6d3a
commit
fd8cf82be1
@ -69,7 +69,7 @@ class SddlDecodeEncodeBase(TestCase):
|
||||
def _test_sddl_with_args(self, s, canonical):
|
||||
try:
|
||||
sd1 = security.descriptor.from_sddl(s, self.domain_sid)
|
||||
except (TypeError, ValueError) as e:
|
||||
except (TypeError, ValueError, security.SDDLValueError) as e:
|
||||
self.fail(f"raised {e}")
|
||||
|
||||
sddl = sd1.as_sddl(self.domain_sid)
|
||||
|
Loading…
Reference in New Issue
Block a user