File: 0001-Define-asyncio_default_fixture_loop_scope-for-pytest.patch

package info (click to toggle)
pytest-mock 3.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: python: 1,465; makefile: 19
file content (20 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Roland Mas <lolando@debian.org>
Date: Wed, 30 Oct 2024 14:54:59 +0100
Subject: Define asyncio_default_fixture_loop_scope for pytest-asyncio >= 0.24

---
 tox.ini | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tox.ini b/tox.ini
index f1c0e98..2ef8c40 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,6 +18,7 @@ commands =
 [pytest]
 addopts = -r a
 asyncio_mode = auto
+asyncio_default_fixture_loop_scope="function"
 
 [flake8]
 max-line-length = 88