Kaydet (Commit) 8de42e2d authored tarafından Florent Xicluna's avatar Florent Xicluna

Use UTF-8 encoding to create Python test scripts.

üst da734e17
......@@ -56,7 +56,8 @@ def temp_dir():
def make_script(script_dir, script_basename, source):
script_filename = script_basename+os.extsep+'py'
script_name = os.path.join(script_dir, script_filename)
script_file = open(script_name, 'w')
# The script should be encoded to UTF-8, the default string encoding
script_file = open(script_name, 'w', encoding='utf-8')
script_file.write(source)
script_file.close()
return script_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment