Skip to content

Commit

Permalink
style: Rewrite two lines to use != in execexam/pytest_plugin.py to av…
Browse files Browse the repository at this point in the history
…oid ruff warnings in GitHub Actions.
  • Loading branch information
gkapfham committed Aug 22, 2024
1 parent 2b97ba8 commit 5bde7a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions execexam/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def pytest_exception_interact(node: Item, call: pytest.CallInfo, report: Any):
(lineno, expl, orig) = extract_exception_details(call)
# one of the test reports was found
# and thus we can store information about this assertion
if current_test_report is not {}:
if current_test_report != {}:
# create an empty dictionary for the data about
# the assertions for this failing test
current_assertion_dict = {}
Expand Down Expand Up @@ -221,7 +221,7 @@ def pytest_assertion_pass(
current_test_report = current_report
# one of the test reports was found
# and thus we can store information about this assertion
if current_test_report is not {}:
if current_test_report != {}:
# create a dictionary to store details
# about the passing assertion for this test
current_assertion_dict = {}
Expand Down

0 comments on commit 5bde7a5

Please sign in to comment.