Skip to content

Commit

Permalink
Do not return a value from a pytest case, to fix a deprecation warning (
Browse files Browse the repository at this point in the history
#2898)

This fixes this pytest warning:

  PytestReturnNotNoneWarning: Expected None, but
  test_bash_apps/test_error_codes.py::test_div_0 returned True, which
  will be an error in a future version of pytest.
  Did you mean to use `assert` instead of `return`?
  • Loading branch information
benclifford authored Oct 4, 2023
1 parent 95231e2 commit bd41754
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion parsl/tests/test_bash_apps/test_error_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def test_div_0(test_fn=div_0):
print(os.listdir('.'))
os.remove('std.err')
os.remove('std.out')
return True


@pytest.mark.issue363
Expand Down

0 comments on commit bd41754

Please sign in to comment.