Skip to content

getcfg's parsing of command line arguments #574

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Andreas Pelme (BitBucket: pelme, GitHub: pelme)


https://bitbucket.org/hpk42/pytest/src/aed87f841a762133588d09f17f2ceb050d726569/_pytest/config.py?at=default#cl-846

getcfg looks at all test directorys (or cwd) and strips command line arguments by removing any arguments that starts with '-'.

This leads to that for instance

py.test -m foo

actually scans for foo/pytest.ini, foo/tox.ini, etc which is not really expected/desired


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions