Update src/_pytest/config/__init__.py

This commit is contained in:
Bruno Oliveira 2024-04-18 07:31:01 -03:00 committed by GitHub
parent 95f70839c7
commit c50f156754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -152,8 +152,8 @@ def main(
:returns: An exit code.
"""
old_pytest_version = os.environ.get("PYTEST_VERSION")
try:
old_pytest_version = os.environ.get("PYTEST_VERSION")
os.environ["PYTEST_VERSION"] = __version__
try:
config = _prepareconfig(args, plugins)