Skip to content

Commit

Permalink
Fix ICE-7438 - Python Ice/proxy test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Nov 3, 2016
1 parent c6d8754 commit 807baaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/test/Ice/proxy/AllTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,11 @@ def allTests(communicator, collocated):
#
# Verify that ToStringMode is passed correctly
#
ident = Ice.Identity("test", "\x7F\xE2\x82\xAC")
euroStr = "\xE2\x82\xAC" if sys.version_info[0] < 3 else "\u20ac"
ident = Ice.Identity("test", "\x7F{}".format(euroStr))

idStr = Ice.identityToString(ident, Ice.ToStringMode.Unicode)
test(idStr == "\\u007f\xE2\x82\xAC/test")
test(idStr == "\\u007f{}/test".format(euroStr))
ident2 = Ice.stringToIdentity(idStr)
test(ident == ident2)
test(Ice.identityToString(ident) == idStr)
Expand Down

0 comments on commit 807baaa

Please sign in to comment.