Bug 2389751 - python-toml-cli: FTBFS in Fedora 43: AssertionError in test_get_value and test_no_command
Summary: python-toml-cli: FTBFS in Fedora 43: AssertionError in test_get_value and tes...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-toml-cli
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F43FTBFS PYC3.14rc3 F44FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2025-08-20 14:32 UTC by Karolina Surma
Modified: 2025-09-29 00:32 UTC (History)
3 users (show)

Fixed In Version: python-toml-cli-0.7.0-5.fc43
Clone Of:
Environment:
Last Closed: 2025-09-29 00:32:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-08-20 14:32:45 UTC
Description of problem:
Package python-toml-cli fails to build from source in Fedora 43. This is likely related to the latest python-click update.

Version-Release number of selected component (if applicable):
0.7.0-3.fc43

Steps to Reproduce:
koji build --scratch f43 python-toml-cli-0.7.0-3.fc43.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-toml-cli

Results:

________________________________ test_get_value ________________________________
tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_get_value0')
    def test_get_value(tmp_path: pathlib.Path):
        test_toml_path = tmp_path / "test.toml"
        test_toml_path.write_text(
            """
    [person]
    name = "MyName"
    age = 12
    happy = false
    addresses = ["Rotterdam", "Amsterdam"]
    
    [person.education]
    name = "University"
    
    [[person.vehicles]]
    model = "Golf"
    year = 2020
    
    [[person.vehicles]]
    model = "Prius"
    year = 2016
    """
        )
    
        def get(args, exit_code=0):
            result = runner.invoke(app, args)
            assert result.exit_code == exit_code
            return result.stdout.strip()
    
        assert get(["get", "--toml-path", str(test_toml_path), "person"]) == (
            "{'name': 'MyName', 'age': 12, 'happy': False, "
            "'addresses': ['Rotterdam', 'Amsterdam'], 'education': {'name': 'University'}, "
            "'vehicles': [{'model': 'Golf', 'year': 2020}, {'model': 'Prius', 'year': 2016}]}"
        )
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.education"]) == "{'name': 'University'}"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.education.name"]) == "University"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.age"]) == "12"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.hobby", "--default", "programming"]) == "programming"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.addresses"]) == "['Rotterdam', 'Amsterdam']"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.addresses[1]"]) == "Amsterdam"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles"]) == (
            "[" "{'model': 'Golf', 'year': 2020}, " "{'model': 'Prius', 'year': 2016}" "]"
        )
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles[1]"]) == "{'model': 'Prius', 'year': 2016}"
    
        assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles[1].model"]) == "Prius"
    
>       assert get(["get", "--toml-path", str(test_toml_path), "person.not_existing_key"], 1)
E       AssertionError: assert ''
E        +  where '' = <function test_get_value.<locals>.get at 0x7fffa1a8a6c0>(['get', '--toml-path', '/tmp/pytest-of-mockbuild/pytest-0/test_get_value0/test.toml', 'person.not_existing_key'], 1)
tests/toml_cli/test_init.py:77: AssertionError
_______________________________ test_no_command ________________________________
    def test_no_command():
        result = runner.invoke(app, [])
>       assert result.exit_code == 0
E       assert 2 == 0
E        +  where 2 = <Result SystemExit(2)>.exit_code
tests/toml_cli/test_init.py:218: AssertionError
=========================== short test summary info ============================
FAILED tests/toml_cli/test_init.py::test_get_value - AssertionError: assert ''
FAILED tests/toml_cli/test_init.py::test_no_command - assert 2 == 0

Comment 1 Miro Hrončok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 2 Fedora Update System 2025-09-23 18:53:10 UTC
FEDORA-2025-2e098203fa (python-toml-cli-0.7.0-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-2e098203fa

Comment 3 Fedora Update System 2025-09-29 00:32:32 UTC
FEDORA-2025-2e098203fa (python-toml-cli-0.7.0-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.