Skip to main content

Push information about the running pytest into envvars

Project description


.. image::

Push information about the running pytest into the environment


* Injects information about the Python and Pytest versions that are running the unittests into the
environment. This can be used for configuring other pytest plugins for the Python version being run

The following environment variables are set:

.. envvar:: PYTEST_VERSION

The version of the executing pytest

.. envvar:: PYTEST_PYVER

The version of the Python interpreter running pytest


The major version of the Python interpreter. For instance, "2" on Python-2.7.14 and "3" for


The major and minor version of the Python interpreter. For instance, "2.7" on Python-2.7.14 and
"3.6" for Python-3.6.1.


* Pytest


You can install "pytest-env-info" via `pip`_ from `PyPI`_::

$ pip install pytest-env-info

Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the `MIT`_ license, "pytest-env-info" is free and open source software


If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`MIT`:
.. _`file an issue`:
.. _`pytest`:
.. _`tox`:
.. _`pip`:
.. _`PyPI`:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-env-info, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_env_info-0.3.0-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-env-info-0.3.0.tar.gz (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page