summaryrefslogtreecommitdiffstats
path: root/ipatests/data.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-09-17 18:46:14 +0200
committerMartin Basti <mbasti@redhat.com>2015-10-22 18:34:46 +0200
commit8a2b65a35731470da0befeb01a4e863d782f0e6f (patch)
treec334d611ce5c702577345ec199086af6f59aa576 /ipatests/data.py
parent0a23afeab2bcba2d2694281cfc558f2821821f59 (diff)
downloadfreeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.tar.gz
freeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.tar.xz
freeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.zip
Fix more bytes/unicode issues
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipatests/data.py')
-rw-r--r--ipatests/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/data.py b/ipatests/data.py
index 7fe2002c6..7ea7e81fd 100644
--- a/ipatests/data.py
+++ b/ipatests/data.py
@@ -27,7 +27,7 @@ import struct
# A string that should have bytes 'x\00' through '\xff':
binary_bytes = b''.join(struct.pack('B', d) for d in range(256))
assert b'\x00' in binary_bytes and b'\xff' in binary_bytes
-assert type(binary_bytes) is str and len(binary_bytes) == 256
+assert type(binary_bytes) is bytes and len(binary_bytes) == 256
# A UTF-8 encoded str:
utf8_bytes = b'\xd0\x9f\xd0\xb0\xd0\xb2\xd0\xb5\xd0\xbb'