diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-02-16 10:48:00 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-04 21:41:17 +0000 |
commit | edfd33ab3e970099a680f0e1f28d135741cf8cc0 (patch) | |
tree | d74e962b903d2861c01420002d6d90273ab3ea3c /source4 | |
parent | 4ddfe8fc750fbc80b49e51cf9e0f2109cb59d710 (diff) | |
download | samba-edfd33ab3e970099a680f0e1f28d135741cf8cc0.tar.gz |
tests/rodc_rwdc: p.communicate() gives bytes, not str
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/tests/python/rodc_rwdc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |