Bug 2466662 - python-toml-cli: FTBFS in Fedora Rawhide: 2 tests fail [NEEDINFO]
Summary: python-toml-cli: FTBFS in Fedora Rawhide: 2 tests fail
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-toml-cli
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
: 2485971 (view as bug list)
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS F45FailsToInstall, RAWHIDEFailsToInstall 2485907
TreeView+ depends on / blocked
 
Reported: 2026-05-05 08:10 UTC by Karolina Surma
Modified: 2026-07-05 20:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
fti-bugs: needinfo? (davide)


Attachments (Terms of Use)

Description Karolina Surma 2026-05-05 08:10:57 UTC
Description of problem:
Package python-toml-cli fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.7.0-7.fc44

Steps to Reproduce:
koji build --scratch f45 python-toml-cli-0.7.0-7.fc44.src.rpm

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

Reproducible: Always

Actual 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 0x7fff9fc5aae0>(['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 Karolina Surma 2026-06-06 18:25:18 UTC
*** Bug 2485971 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2026-06-14 08:31:45 UTC
Hello,

Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py
If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 3 Fedora Fails To Install 2026-07-05 20:26:32 UTC
Hello,

Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py
If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.


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