--- 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.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to