unicode_strings test: manually check values instead of using assert
This commit is contained in:
parent
ab527b0e4b
commit
91e93838fc
1 changed files with 4 additions and 2 deletions
|
|
@ -8,5 +8,7 @@ import unicode_strings
|
|||
test_string = u'h\udce9llo w\u00f6rld'
|
||||
|
||||
if sys.version_info[0:2] >= (3, 1):
|
||||
assert unicode_strings.non_utf8_c_str() == test_string
|
||||
assert unicode_strings.non_utf8_std_string() == test_string
|
||||
if unicode_strings.non_utf8_c_str() != test_string:
|
||||
raise ValueError('Test comparison mismatch')
|
||||
if unicode_strings.non_utf8_std_string() != test_string:
|
||||
raise ValueError('Test comparison mismatch')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue