We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6bbfc3 commit 558c1ddCopy full SHA for 558c1dd
1 file changed
tests/test_records.py
@@ -164,7 +164,7 @@ def record_value_asserts(
164
else:
165
# Python2 handles UTF-8 differently so needs extra encoding
166
if sys.version_info < (3,) and expected_type == str:
167
- expected_value = expected_value.encode('utf-8')
+ expected_value = expected_value.decode(errors="replace")
168
169
assert actual_value == expected_value
170
assert type(actual_value) == expected_type
0 commit comments