Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 947cb01

Browse files
authored
Update test_conversion.py
1 parent 92ea629 commit 947cb01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tests/test_conversion.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,10 @@ def test_string_conversion():
538538
ConversionTest().StringField = 1
539539

540540
world = UnicodeString()
541-
assert "안녕" == text_type(world.value)
542-
assert "안녕" == text_type(world.GetString())
543-
assert "안녕" == text_type(world)
541+
test_unicode_str = u"안녕"
542+
assert test_unicode_str == text_type(world.value)
543+
assert test_unicode_str == text_type(world.GetString())
544+
assert test_unicode_str == text_type(world)
544545

545546

546547
def test_interface_conversion():

0 commit comments

Comments
 (0)