Bug 2466662 - python-toml-cli: FTBFS in Fedora Rawhide: 2 tests fail
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:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-05-05 08:10 UTC by Karolina Surma
Modified: 2026-05-05 08:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


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


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