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

Skip to content

Commit 084d743

Browse files
authored
Update test_conversion.py
1 parent 36def5d commit 084d743

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/test_conversion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77
from Python.Test import ConversionTest, UnicodeString
88

9-
from ._compat import indexbytes, long, unichr
9+
from ._compat import indexbytes, long, unichr, text_type
1010

1111

1212
def test_bool_conversion():
@@ -537,9 +537,9 @@ def test_string_conversion():
537537
ConversionTest().StringField = 1
538538

539539
world = UnicodeString()
540-
assert "안녕" == str(world.value)
541-
assert "안녕" == str(world.GetString())
542-
assert "안녕" == str(world)
540+
assert "안녕" == text_type(world.value)
541+
assert "안녕" == text_type(world.GetString())
542+
assert "안녕" == text_type(world)
543543

544544

545545
def test_interface_conversion():

0 commit comments

Comments
 (0)