From 0f550b4d89f3c48ebfbd2e5844c65d0f84106469 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Wed, 12 Apr 2023 18:14:04 +0100 Subject: [PATCH] subprocess run instead of call --- tests/test_ncollpyde.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_ncollpyde.py b/tests/test_ncollpyde.py index 97aa16f..c288641 100644 --- a/tests/test_ncollpyde.py +++ b/tests/test_ncollpyde.py @@ -299,7 +299,8 @@ def test_configure_threadpool_subprocess(): "from ncollpyde import configure_threadpool; configure_threadpool(2, 'prefix')" ) args = [sys.executable, "-c", cmd] - assert sp.call(args) == 0 + + sp.run(args, check=True, text=True, capture_output=True) def test_configure_threadpool_twice():