-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
extra space in INI markers section causes inconsistent behavior #2856
Copy link
Copy link
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedproblem that needs to be addressed
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogmight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedproblem that needs to be addressed
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.
pytest.ini example:
NOTE: There's an extra space between dev and the colon.
pytest --markers lists:
pytest -m dev generates:
Version info:
Python 3.4.3 running on Windows 10.0.14393
pytest version 3.2.3