Add pytest.version_tuple

This adds `pytest.version_tuple`, which makes it simpler for users to do something depending on the pytest version, such as declaring hooks which are introduced in later versions.

This feature was added originally in https://github.com/pypa/setuptools_scm/pull/475.

Followup to https://github.com/pytest-dev/pytest/pull/7605.
This commit is contained in:
Bruno Oliveira
2021-06-14 08:28:45 -03:00
parent 6447ca5f1e
commit 7eb0792cba
5 changed files with 44 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
New :ref:`version-tuple` attribute, which makes it simpler for users to do something depending on the pytest version (such as declaring hooks which are introduced in later versions).