From: Douglas Bagnall Date: Fri, 15 Feb 2019 21:48:00 +0000 (+1300) Subject: tests/rodc_rwdc: p.communicate() gives bytes, not str X-Git-Tag: talloc-2.2.0~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edfd33ab3e970099a680f0e1f28d135741cf8cc0;p=thirdparty%2Fsamba.git tests/rodc_rwdc: p.communicate() gives bytes, not str Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/rodc_rwdc.py b/source4/dsdb/tests/python/rodc_rwdc.py index 3596c7d750a..c2c41634b8c 100644 --- a/source4/dsdb/tests/python/rodc_rwdc.py +++ b/source4/dsdb/tests/python/rodc_rwdc.py @@ -88,7 +88,7 @@ def set_auto_replication(dc, allow): stdout=subprocess.PIPE) stdout, stderr = p.communicate() if p.returncode: - if 'LDAP_REFERRAL' not in stderr: + if b'LDAP_REFERRAL' not in stderr: raise RodcRwdcTestException() print("ignoring +%s REFERRAL error; assuming %s is RODC" % (opt, dc))