Skip to content

Commit

Permalink
Fix for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 17, 2024
1 parent 8b013df commit 428dc3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytest_reportportal/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import pytest
# noinspection PyPackageRequirements
import requests
# noinspection PyPackageRequirements
from pluggy import Result
from pytest import Config, FixtureDef, FixtureRequest, Parser, Session, Item
from reportportal_client import RPLogHandler, RP
from reportportal_client.errors import ResponseError
Expand Down Expand Up @@ -315,7 +313,7 @@ def report_fixture(request: FixtureRequest, name: str, error_msg: str) -> None:
item_id = reporter.start_nested_step(name, timestamp())

try:
outcome: Result = yield
outcome = yield
if outcome.exception:
log.error(error_msg)
log.exception(outcome.exception)
Expand Down

0 comments on commit 428dc3b

Please sign in to comment.