diff options
Diffstat (limited to 'ruby/test')
-rwxr-xr-x | ruby/test/Ice/properties/run.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ruby/test/Ice/properties/run.py b/ruby/test/Ice/properties/run.py index 23719647b00..5f9f3cd3571 100755 --- a/ruby/test/Ice/properties/run.py +++ b/ruby/test/Ice/properties/run.py @@ -26,10 +26,12 @@ import TestUtil # if sys.version_info[0] == 2: configPath = "./config/\xe4\xb8\xad\xe5\x9b\xbd_client.config" + decodedPath = configPath.decode("utf-8") else: configPath = "./config/\u4e2d\u56fd_client.config" + decodedPath = configPath # No need to decode with Python3, strings are already Unicode -TestUtil.createConfig(configPath.decode("utf-8"), +TestUtil.createConfig(decodedPath, ["# Automatically generated by Ice test driver.", "Ice.Trace.Protocol=1", "Ice.Trace.Network=1", @@ -39,5 +41,5 @@ TestUtil.createConfig(configPath.decode("utf-8"), TestUtil.simpleTest() -if os.path.exists(configPath.decode("utf-8")): - os.remove(configPath.decode("utf-8")) +if os.path.exists(decodedPath): + os.remove(decodedPath) |