1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

pytest: samba-tool: Fix undefined escape sequence

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2022-09-16 12:55:58 +12:00
committed by Andrew Bartlett
parent 352064979b
commit 90c371d6cd

View File

@@ -86,7 +86,7 @@ class DSaclSetSddlTestCase(SambaToolCmdTest):
self.assertEqual(err, "", "Shouldn't be any error messages")
#extract only the two sddl strings from samba-tool output
acl_list=re.findall('.*descriptor for.*:\n(.*?)\n',out)
for ace in re.findall('\(.*?\)',self.sddl_multi):
for ace in re.findall(r'\(.*?\)',self.sddl_multi):
self.assertMatch(acl_list[1], ace, "new SDDL string should be contained within second sddl output")
def test_duplicatesddl(self):