Skip to content

Commit

Permalink
Update src/_pytest/config/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored Apr 18, 2024
1 parent 95f7083 commit c50f156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c50f156

Please sign in to comment.