summaryrefslogtreecommitdiff
path: root/devel/py-ice/files/patch-py-test-Ice-properties-run.py
blob: 3758be556db95f6c9594d9453681ec75a29a3fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- py/test/Ice/properties/run.py.orig	2013-05-21 02:29:52.861195367 +0000
+++ py/test/Ice/properties/run.py	2013-05-21 02:30:44.972196471 +0000
@@ -26,15 +26,15 @@
 #
 if sys.version_info[0] == 2:
     configPath = "./config/\xe4\xb8\xad\xe5\x9b\xbd_client.config".decode("utf-8")
-    TestUtil.createConfig(configPath, 
+    TestUtil.createConfig(configPath.encode("utf-8"), 
                           ["# Automatically generated by Ice test driver.", 
                            "Ice.Trace.Protocol=1",
                            "Ice.Trace.Network=1", 
                            "Ice.ProgramName=PropertiesClient", 
-                           "Config.Path=./config/中国_client.config"])
+                           "Config.Path=" + configPath.encode("utf-8")])
 else:
     configPath = "./config/\u4e2d\u56fd_client.config"
-    TestUtil.createConfig(configPath, 
+    TestUtil.createConfig(configPath.encode("utf-8"), 
                           ["# Automatically generated by Ice test driver.", 
                            "Ice.Trace.Protocol=1",
                            "Ice.Trace.Network=1", 
@@ -44,5 +44,5 @@
 
 TestUtil.simpleTest()
 
-if os.path.exists(configPath):
-    os.remove(configPath)
+if os.path.exists(configPath.encode("utf-8")):
+    os.remove(configPath.encode("utf-8"))