From edfd33ab3e970099a680f0e1f28d135741cf8cc0 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sat, 16 Feb 2019 10:48:00 +1300 Subject: [PATCH] tests/rodc_rwdc: p.communicate() gives bytes, not str Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/rodc_rwdc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.34.1