Skip to content

test_lltrace fails on non-UTF-8 locale #91924

Closed
@serhiy-storchaka

Description

@serhiy-storchaka
$ LC_ALL=en_US.iso88591 ./python -m test -vuall test_lltrace
...
======================================================================
FAIL: test_lltrace (test.test_lltrace.TestLLTrace.test_lltrace)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_lltrace.py", line 56, in test_lltrace
    self.assertIn("GET_ITER", stdout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'GET_ITER' not found in "\nResuming frame for 'trace_me' in module '__main__'\n\nResuming frame for '<module>'\n    stack=[None]\n62: POP_TOP\n    stack=[]\n64: DELETE_NAME 3\n    stack=[]\n66: PUSH_NULL\n    stack=[<nil>]\n68: LOAD_NAME 2\n    stack=[<nil>, <function dont_trace_2 at 0x7feae8a28890>]\n70: PRECALL 0\n    stack=[<nil>, <function dont_trace_2 at 0x7feae8a28890>]\n74: CALL 0\n"

======================================================================
FAIL: test_lltrace_different_module (test.test_lltrace.TestLLTrace.test_lltrace_different_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_lltrace.py", line 74, in test_lltrace_different_module
    self.assertIn('LOAD_CONST', stdout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'LOAD_CONST' not found in "\nResuming frame for 'example' in module 'test.test_lltrace'\nthis is an example\n"

----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixes3.9only security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions