From bd4175414c91a90694ad17fb96eb435da9093af8 Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Wed, 4 Oct 2023 13:51:59 +0100 Subject: [PATCH] Do not return a value from a pytest case, to fix a deprecation warning (#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`? --- parsl/tests/test_bash_apps/test_error_codes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/parsl/tests/test_bash_apps/test_error_codes.py b/parsl/tests/test_bash_apps/test_error_codes.py index 38b2b9533d..5060655076 100644 --- a/parsl/tests/test_bash_apps/test_error_codes.py +++ b/parsl/tests/test_bash_apps/test_error_codes.py @@ -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