From ee1ed000338942fddd16d792f724435e84d2227f Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Fri, 11 Mar 2022 09:45:35 +0100 Subject: [PATCH] test: Removed test with obsolete "forbid_global_loop". forbid_global_loop was an option to pytest.mark.asyncio which was removed in v0.6.0. The two subprocess tests are otherwise identical. Therefore, one of the tests was removed along with the obsolete option. Signed-off-by: Michael Seifert --- tests/test_subprocess.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index 311d67d5..8f1caee5 100644 --- a/tests/test_subprocess.py +++ b/tests/test_subprocess.py @@ -15,19 +15,10 @@ def event_loop(): loop.close() -@pytest.mark.asyncio(forbid_global_loop=False) +@pytest.mark.asyncio async def test_subprocess(event_loop): """Starting a subprocess should be possible.""" proc = await asyncio.subprocess.create_subprocess_exec( sys.executable, "--version", stdout=asyncio.subprocess.PIPE ) await proc.communicate() - - -@pytest.mark.asyncio(forbid_global_loop=True) -async def test_subprocess_forbid(event_loop): - """Starting a subprocess should be possible.""" - proc = await asyncio.subprocess.create_subprocess_exec( - sys.executable, "--version", stdout=asyncio.subprocess.PIPE - ) - await proc.communicate()