Skip to content

Test test_embed fails on Windows 11, Python 3.13.0a0 #106659

Closed
@bityob

Description

@bityob

Bug report

The test test_embed fails on my Windows machine, using master branch (commit d0972c7).

python.bat -m test test_embed

Full output -

C:\Code\cpython>python.bat -m test test_embed
Running Debug|x64 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test_embed
test test_embed failed -- Traceback (most recent call last):
  File "C:\Code\cpython\Lib\test\test_embed.py", line 259, in test_forced_io_encoding
    self.assertEqual(out.strip(), expected_output)
AssertionError: '--- [403 chars]din: utf-8:surrogateescape\nstdout: iso8859-1:[221 chars]lace' != '--- [403 chars]din: iso8859-1:surrogateescape\nstdout: iso885[229 chars]lace'
  --- Use defaults ---
  Expected encoding: default
  Expected errors: default
  stdin: utf-8:surrogateescape
  stdout: utf-8:surrogateescape
  stderr: utf-8:backslashreplace
  --- Set errors only ---
  Expected encoding: default
  Expected errors: ignore
  stdin: utf-8:ignore
  stdout: utf-8:ignore
  stderr: utf-8:backslashreplace
  --- Set encoding only ---
  Expected encoding: iso8859-1
  Expected errors: default
- stdin: utf-8:surrogateescape
?        ^^^ ^
+ stdin: iso8859-1:surrogateescape
?        ^^^^^^^ ^
  stdout: iso8859-1:surrogateescape
  stderr: iso8859-1:backslashreplace
  --- Set encoding and errors ---
  Expected encoding: iso8859-1
  Expected errors: replace
- stdin: utf-8:replace
+ stdin: iso8859-1:replace
  stdout: iso8859-1:replace
  stderr: iso8859-1:backslashreplace


test_embed failed (1 failure) in 30.7 sec

== Tests result: FAILURE ==

1 test failed:
    test_embed

Total duration: 30.7 sec
Tests result: FAILURE

Your environment

  • CPython versions tested on:
Running Debug|x64 interpreter...
Python 3.13.0a0
  • Commit: d0972c7
  • Operating system and architecture:
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22621 N/A Build 22621

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions