From: Joerg Behrmann Date: Thu, 14 Apr 2022 11:33:31 +0000 (+0200) Subject: test: squelch asyncio io warning X-Git-Tag: v13~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=441ba7adc9f68d7b954938f584fa9c0994bf422e;p=thirdparty%2Fmkosi.git test: squelch asyncio io warning This silences the deprecation warning The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file. The difference is whether pytest considers async tests to be asyncio-driven even when they are not marked @pytest.mark.asyncio with 'auto' meaning yes, consider them even when not marked, and 'strict' requiring the marking. This doesn't really make a difference for us, since we don't have any async tests, but it's nevertheless nice to silence the warning. --- diff --git a/pyproject.toml b/pyproject.toml index 6dcacadc4..cd461cf7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,3 +9,6 @@ py_version = "37" [tool.pyright] pythonVersion = "3.7" + +[tool.pytest.ini_options] +asyncio_mode = "auto"