Summary: | dev-python/click-8.1.3 fails tests (MUSL-SYSTEM) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | paolo.pedroni |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
click-8.1.3:20230630-063739.log.gz |
Description
Agostino Sarubbo
![]() Created attachment 861912 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern: E AttributeError: can't set attribute 'encoding' E AttributeError: can't set attribute 'encoding' ERROR tests/test_arguments.py::test_bytes_args - AttributeError: can't set at... FAILED tests/test_arguments.py::test_bytes_args - AttributeError: can't set a... tests/test_basic.py::test_float_option[--f=x-Error: Invalid value for '--f': 'x' is not a valid float.] PASSED [ 55/598] tests/test_basic.py::test_int_option[args2-Error: Invalid value for '--i': 'x' is not a valid integer.] PASSED [ 49/598] tests/test_basic.py::test_string_option[args2-Error: Option '--s' requires an argument.] PASSED [ 44/598] tests/test_basic.py::test_uuid_option[args2-Error: Invalid value for '--u': 'x' is not a valid UUID.] PASSED [ 52/598] tests/test_commands.py::test_group_with_args[args0-2-Error: Missing command.] PASSED [118/598] With glibc-2.37-r3 and python-3.11.4 it fails the same test, in the same place, but with a different error. Shall I open a new bug or can I follow up here?
=================================================================================================================== FAILURES ===================================================================================================================
_______________________________________________________________________________________________________________ test_bytes_args ________________________________________________________________________________________________________________
runner = <click.testing.CliRunner object at 0x7f8d90659710>, monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8d9065a110>
def test_bytes_args(runner, monkeypatch):
@click.command()
@click.argument("arg")
def from_bytes(arg):
assert isinstance(
arg, str
), "UTF-8 encoded argument should be implicitly converted to Unicode"
# Simulate empty locale environment variables
> monkeypatch.setattr(sys.stdin, "encoding", "utf-8")
E AttributeError: property 'encoding' of 'DontReadFromInput' object has no setter
from_bytes = <Command from-bytes>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8d9065a110>
runner = <click.testing.CliRunner object at 0x7f8d90659710>
tests/test_arguments.py:89: AttributeError
=========================================================================================================== short test summary info ============================================================================================================
SKIPPED [16] tests/test_termui.py:328: Tests user-input using the msvcrt module.
SKIPPED [3] tests/test_termui.py:338: Tests special character inputs using the msvcrt module.
SKIPPED [2] tests/test_termui.py:353: Tests user-input using the msvcrt module.
XFAIL tests/test_chain.py::test_multicommand_chaining
ERROR tests/test_arguments.py::test_bytes_args - AttributeError: property 'encoding' of 'DontReadFromInput' object has no setter
FAILED tests/test_arguments.py::test_bytes_args - AttributeError: property 'encoding' of 'DontReadFromInput' object has no setter
======================================================================================== 1 failed, 575 passed, 21 skipped, 1 xfailed, 1 error in 1.55s =========================================================================================
Created attachment 864864 [details]
click-8.1.3:20230630-063739.log.gz
Same bug is okay here because it looks similar enough (+ recent enough time, it's not a bug from ages ago). Thanks for checking! |