Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tests always fail on non-UTF-8 locale #91904

Closed
Labels
3.10only security fixes3.11only security fixestype-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka
$ LC_ALL=uk_UA.koi8u ./python -m testTraceback (most recent call last):  File "<frozen runpy>", line 198, in _run_module_as_main  File "<frozen runpy>", line 88, in _run_code  File "/home/serhiy/py/cpython/Lib/test/__main__.py", line 2, in <module>    main()    ^^^^^^  File "/home/serhiy/py/cpython/Lib/test/libregrtest/main.py", line 737, in main    Regrtest().main(tests=tests, **kwargs)    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/contextlib.py", line 155, in __exit__    self.gen.throw(typ, value, traceback)    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/contextlib.py", line 155, in __exit__    self.gen.throw(typ, value, traceback)    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/support/os_helper.py", line 396, in temp_dir    yield path    ^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/contextlib.py", line 155, in __exit__    self.gen.throw(typ, value, traceback)    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/support/os_helper.py", line 427, in change_cwd    yield os.getcwd()    ^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/support/os_helper.py", line 449, in temp_cwd    yield cwd_dir    ^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/libregrtest/main.py", line 675, in main    self._main(tests, kwargs)    ^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/libregrtest/main.py", line 704, in _main    setup_tests(self.ns)    ^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/libregrtest/setup.py", line 107, in setup_tests    os.environ.setdefault(    ^^^^^^^^^^^^^^^^^^^^^^  File "<frozen os>", line 717, in setdefault  File "<frozen os>", line 683, in __setitem__  File "<frozen os>", line 758, in encode  File "/home/serhiy/py/cpython/Lib/encodings/koi8_u.py", line 12, in encode    return codecs.charmap_encode(input,errors,encoding_table)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f60e' in position 0: character maps to <undefined>

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp