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

Skip to content

Commit 1f3255a

Browse files
authored
Update test_conversion.py
1 parent 42999f7 commit 1f3255a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tests/test_conversion.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import System
66
import pytest
7-
from Python.Test import ConversionTest
7+
from Python.Test import ConversionTest, UnicodeString
88

99
from ._compat import indexbytes, long, unichr
1010

@@ -535,6 +535,11 @@ def test_string_conversion():
535535

536536
with pytest.raises(TypeError):
537537
ConversionTest().StringField = 1
538+
539+
world = UnicodeString()
540+
assert "안녕" = str(world.value)
541+
assert "안녕" = str(world.GetString())
542+
assert "안녕" = str(world)
538543

539544

540545
def test_interface_conversion():

0 commit comments

Comments
 (0)