Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_curses fails on non-UTF-8 locale #91914

Closed
serhiy-storchaka opened this issue Apr 25, 2022 · 0 comments · Fixed by #91919
Closed

test_curses fails on non-UTF-8 locale #91914

serhiy-storchaka opened this issue Apr 25, 2022 · 0 comments · Fixed by #91919
Assignees
Labels
3.9 3.10 3.11 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Apr 25, 2022

$ LC_ALL=en_US.iso885915 ./python -m test -vuall test_curses -m test.test_curses.TestCurses.test_output_character
== CPython 3.11.0a7+ (heads/re-group-name:5026649f98, Apr 24 2022, 22:45:28) [GCC 9.4.0]
== Linux-5.4.0-109-generic-x86_64-with-glibc2.31 little-endian
== cwd: /home/serhiy/py/cpython/build/test_python_197494�
== CPU count: 8
== encodings: locale=ISO-8859-15, FS=iso8859-15
0:00:00 load avg: 1.53 Run tests sequentially
0:00:00 load avg: 1.53 [1/1] test_curses
TERM=xterm-256color
test_output_character (test.test_curses.TestCurses.test_output_character) ... 

======================================================================
FAIL: test_output_character (test.test_curses.TestCurses.test_output_character)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_curses.py", line 270, in test_output_character
    with self.assertRaises((UnicodeEncodeError, OverflowError)):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: (<class 'UnicodeEncodeError'>, <class 'OverflowError'>) not raised

----------------------------------------------------------------------
Ran 1 test in 0.006s

FAILED (failures=1)
test test_curses failed
test_curses failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_curses

Total duration: 98 ms
Tests result: FAILURE
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir 3.11 3.10 3.9 labels Apr 25, 2022
@serhiy-storchaka serhiy-storchaka self-assigned this Apr 25, 2022
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Apr 25, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 26, 2022
(cherry picked from commit f41c16b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington added a commit that referenced this issue Apr 26, 2022
(cherry picked from commit f41c16b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington added a commit that referenced this issue Apr 26, 2022
(cherry picked from commit f41c16b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
hello-adam pushed a commit to hello-adam/cpython that referenced this issue Jun 2, 2022
(cherry picked from commit f41c16b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 3.10 3.11 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant