Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
extra space in INI markers section causes inconsistent behavior #2856
In the markers section of the INI file, if you include an extra space between the marker and the colon, the pytest --markers command lists the marker, however the running pytest -m mymarker causes an "Attribute Error: 'mymarker' not a registered marker.
NOTE: There's an extra space between dev and the colon.
pytest --markers lists:
pytest -m dev generates: