New issue 425: --markers output does not include markers from plugins in subdirs
https://bitbucket.org/hpk42/pytest/issue/425/markers-output-does-not-include-markers

Jurko Gospodnetić:

When pytest is called with the '--markers' option, it does not seem to collect
marker information from plugins in subdirs on time. They get loaded and used
correctly for the actual test run, but --markers output does not include
information on them.

Pull request #104 includes a prepared unit test reproducing and testing for 
this behaviour.

I noticed this on the suds-jurko package where running the tests using Python 2 
shows --markers correctly, while running them using Python 3 (tests get run 
from a different folder after running py2to3 on the entire source base), 
locally defined plugin markers are not listed. The plugins themselves still get 
loaded and used correctly for the actual test run, but that seems to occur only 
after pytest prepares its --markers output.

Hope this helps.

Best regards,
  Jurko Gospodnetić


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to