bpo-20844: open script file with "rb" mode by methane · Pull Request #12616 · python/cpython (original) (raw)

OK, AppVeyor failed on added test:

======================================================================
FAIL: test_issue20884 (test.test_cmd_line_script.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\test_cmd_line_script.py", line 425, in test_issue20884
    rc, out, err = assert_python_ok(script_name)
  File "C:\projects\cpython\lib\test\support\script_helper.py", line 157, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "C:\projects\cpython\lib\test\support\script_helper.py", line 143, in _assert_python
    res.fail(cmd_line)
  File "C:\projects\cpython\lib\test\support\script_helper.py", line 70, in fail
    raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['C:\\projects\\cpython\\PCbuild\\amd64\\python.exe', '-X', 'faulthandler', '-I', 'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\tmpnejtdxss\\issue20884.py']
stdout:
---
---
stderr:
---
File "C:\Users\appveyor\AppData\Local\Temp\1\tmpnejtdxss\issue20884.py", line 1
SyntaxError: encoding problem: iso-8859-1
---
----------------------------------------------------------------------

Same fail on Azure x86 and amd64