[Pytest-commit] Issue #574: getcfg's parsing of command line arguments (hpk42/pytest)

Andreas Pelme issues-reply at bitbucket.org
Thu Aug 28 22:20:09 CEST 2014


New issue 574: getcfg's parsing of command line arguments
https://bitbucket.org/hpk42/pytest/issue/574/getcfgs-parsing-of-command-line-arguments

Andreas 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




More information about the pytest-commit mailing list