From 3b44a9c52c3fb62399650fc85bf24e7af7745b09 Mon Sep 17 00:00:00 2001 From: mferrera Date: Tue, 9 Jul 2024 10:50:55 +0200 Subject: [PATCH] TST: Resolve pytest warning about test return --- tests/test_surface/test_forks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_surface/test_forks.py b/tests/test_surface/test_forks.py index 9421deca7..db20b0eda 100644 --- a/tests/test_surface/test_forks.py +++ b/tests/test_surface/test_forks.py @@ -19,6 +19,4 @@ def test_surface_forks(): ) stdout, stderr = process.communicate() ret_code = process.wait() - if ret_code: - raise Exception(stderr) - return stdout + assert ret_code == 0, stderr