mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 02:00:30 -04:00
This utilizes the new py3kplist feature. While being there, fix unit tests so they work with python3 regardless of the build environment's locale. PR: 207771 Submitted by: rm Approved by: maintainers (implicit)
15 lines
730 B
Python
15 lines
730 B
Python
--- cpp/test/Ice/properties/run.py.orig 2015-12-27 03:21:09.629772970 +0100
|
|
+++ cpp/test/Ice/properties/run.py 2015-12-27 03:21:20.836761970 +0100
|
|
@@ -28,10 +28,10 @@
|
|
#
|
|
if sys.version_info[0] == 2:
|
|
configPath = "./config/\xe4\xb8\xad\xe5\x9b\xbd_client.config"
|
|
- decodedPath = configPath.decode("utf-8")
|
|
+ decodedPath = configPath
|
|
else:
|
|
configPath = "./config/\u4e2d\u56fd_client.config"
|
|
- decodedPath = configPath # No need to decode with Python3, strings are already Unicode
|
|
+ decodedPath = configPath.encode("utf-8", "ignore") # No need to decode with Python3, strings are already Unicode
|
|
|
|
TestUtil.createConfig(decodedPath,
|
|
["# Automatically generated by Ice test driver.",
|