Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-29286][PYTHON][TESTS] Uses UTF-8 with 'replace' on errors at P…
…ython testing script ### What changes were proposed in this pull request? This PR proposes to let Python 2 uses UTF-8, instead of ASCII, with permissively replacing non-UDF-8 unicodes into unicode points in Python testing script. ### Why are the changes needed? When Python 2 is used to run the Python testing script, with `decode(encoding='ascii')`, it fails whenever non-ascii codes are printed out. ### Does this PR introduce any user-facing change? To dev, it will enable to support to print out non-ASCII characters. ### How was this patch tested? Jenkins will test it for our existing test codes. Also, manually tested with UTF-8 output. Closes apache#26021 from HyukjinKwon/SPARK-29286. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information