Skip to content

Commit 0c0a9b5

Browse files
committed
Silence pytest-asyncio ResourceWarning
1 parent 4bf0562 commit 0c0a9b5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ raw-options = { local_scheme = "no-local-version" }
7272

7373

7474
[tool.pytest.ini_options]
75-
addopts = ["-ra", "--strict-markers", "--strict-config"]
75+
addopts = ["--strict-markers", "--strict-config", "--import-mode=importlib"]
7676
testpaths = "tests"
7777
xfail_strict = true
78-
filterwarnings = ["once::Warning"]
78+
filterwarnings = [
79+
"once::Warning",
80+
# Probably <https://github.com/pytest-dev/pytest-asyncio/issues/724>
81+
"ignore:unclosed event loop:ResourceWarning",
82+
]
7983
asyncio_mode = "auto"
8084
asyncio_default_fixture_loop_scope = "function"
8185

0 commit comments

Comments
 (0)