Skip to content

TypeError when using --fixtures #15378

Open

Description

@janlarres

Running pytest --fixtures results in a TypeError, apparently due to a missing implementation of __lt__():

$ pytest --fixtures
========================================================== test session starts ==========================================================
platform darwin -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
django: version: 6.1.2, settings: config.settings (from ini)
rootdir: /Users/Jan.Larres/src/farm
configfile: pyproject.toml
plugins: Faker-40.43.0, django-4.14.0
collected 42 items
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/Users/Jan.Larres/src/farm/.venv/lib/python3.14/site-packages/_pytest/main.py", line 333, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>                          ~~~~^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/Users/Jan.Larres/src/farm/.venv/lib/python3.14/site-packages/_pytest/fixtures.py", line 2535, in _showfixtures_main
INTERNALERROR>     available.sort()
INTERNALERROR>     ~~~~~~~~~~~~~~^^
INTERNALERROR> TypeError: '<' not supported between instances of 'FixtureDef' and 'FixtureDef'

========================================================= no tests ran in 1.35s =========================================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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