Skip to content

Configuration with pytest.ini not working #135

@reyniersbram

Description

@reyniersbram

Bug Report

Current Behavior
Configuration in a pytest.ini or pyproject.toml file does not work.

Input Code

pytest.ini:

[pytest]
addopts = --memray
memray = true
hide_memray_summary = true

Or the pyproject.toml alternative:

[tools.pytest.ini_options]
addopts = "--memray"
memray = true
hide_memray_summary = true

Expected behavior/code

With this example configuration, I would expect the memray summary to not show after running pytest. Putting in any other configuration option has no effect either. When running pytest --memray --hide-memray-summary, or other options, this works as expected.

Environment

  • Python(s): Python 3.12, other versions not tested

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