[py-dev] [hpk42/pytest] Can't change python_files from pytest_cnfigure() (issue #204)

Alexander Schepanovski issues-reply at bitbucket.org
Sat Oct 20 16:28:26 CEST 2012


--- you can reply above this line ---

New issue 204: Can't change python_files from pytest_cnfigure()
https://bitbucket.org/hpk42/pytest/issue/204/cant-change-python_files-from

Alexander Schepanovski:

Here is my conftest.py

    #!python
    def pytest_addoption(parser):
        parser.addoption('--bench',
               action="store_true", dest="bench", default=False,
               help=("Enable benchmark mode"))

    def pytest_configure(config):
        if config.getvalue("bench"):
            config.addinivalue_line("python_files", "bench_*.py") # Problem here

and it raises AssertError.


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the Pytest-dev mailing list