From: Douglas Bagnall Date: Wed, 24 Oct 2018 22:40:53 +0000 (+1300) Subject: samba-tool tests: fix bytes/str issue in masked test X-Git-Tag: tdb-1.3.17~1146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add4068fb79c0459e94edcc7fd001adc514509cb;p=thirdparty%2Fsamba.git samba-tool tests: fix bytes/str issue in masked test This test will be revealed to the world in the next commit. Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/tests/samba_tool/ou.py b/python/samba/tests/samba_tool/ou.py index 47636d7cddb..92986a4aafb 100644 --- a/python/samba/tests/samba_tool/ou.py +++ b/python/samba/tests/samba_tool/ou.py @@ -142,7 +142,7 @@ class OUCmdTestCase(SambaToolCmdTest): for ouobj in oulist: name = ouobj.get("name", idx=0) - found = self.assertMatch(out, name, + found = self.assertMatch(out, str(name), "ou '%s' not found" % name) def test_rename(self):