summaryrefslogtreecommitdiff
path: root/csharp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2015-08-28 21:04:40 +0000
committerMark Spruiell <mes@zeroc.com>2015-08-28 21:04:40 +0000
commita9e5f177d02631c0922c9ee824459a8951bc6403 (patch)
tree249c06ac89b492663f87f5d5d298514997a28c15 /csharp
parentFix isDebian method typo (diff)
downloadice-a9e5f177d02631c0922c9ee824459a8951bc6403.tar.bz2
ice-a9e5f177d02631c0922c9ee824459a8951bc6403.tar.xz
ice-a9e5f177d02631c0922c9ee824459a8951bc6403.zip
ICE-6742 - more python3 fixes
Diffstat (limited to 'csharp')
-rwxr-xr-xcsharp/test/Ice/properties/run.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/csharp/test/Ice/properties/run.py b/csharp/test/Ice/properties/run.py
index 23719647b00..5f9f3cd3571 100755
--- a/csharp/test/Ice/properties/run.py
+++ b/csharp/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)