Skip to content

'TStringMissingPlaceholders' doesn't have an error code assigned (test_all_pyflakes_messages_have_flake8_codes_assigned) #1984

@befeleme

Description

@befeleme

how did you install flake8?

I try to build flake8 as RPM.

unmodified output of flake8 --bug-report

N/A

describe the problem

Hi, I'm trying to build pyflakes and flake8 with Python 3.14.0b2 in Fedora Linux.
With some compat bits gotten from both repositories, I'm down to one failing test:

____________ test_all_pyflakes_messages_have_flake8_codes_assigned _____________

    def test_all_pyflakes_messages_have_flake8_codes_assigned():
        """Verify all PyFlakes messages have error codes assigned."""
        messages = {
            name
            for name, obj in vars(pyflakes.messages).items()
            if name[0].isupper() and obj.message
        }
>       assert messages == set(pyflakes_shim.FLAKE8_PYFLAKES_CODES)
E       AssertionError: assert {'AssertTuple...rgument', ...} == {'AssertTuple...rgument', ...}
E         
E         Extra items in the left set:
E         'TStringMissingPlaceholders'
E         
E         Full diff:
E           {
E               'AssertTuple',...
E         
E         ...Full output truncated (46 lines hidden), use '-vv' to show

tests/unit/test_pyflakes_codes.py:18: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions