File: 0001-Add-xfail-for-pytest-8.2.x.patch

package info (click to toggle)
pytest-twisted 1.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: python: 1,479; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Fri, 31 May 2024 22:31:45 +0200
Subject: Add xfail for pytest 8.2.x

---
 testing/test_basic.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testing/test_basic.py b/testing/test_basic.py
index dacab70..65b38d9 100755
--- a/testing/test_basic.py
+++ b/testing/test_basic.py
@@ -1009,6 +1009,8 @@ def test_wrong_reactor_with_asyncio(testdir, cmd_opts, request):
 
 @skip_if_no_async_generators()
 def test_async_fixture_module_scope(testdir, cmd_opts):
+    if pytest_version >= (8, 2, 0):
+        pytest.xfail("suspected mode scope teardown regression in pytest 8.2.x")
     test_file = """
     from twisted.internet import reactor, defer
     import pytest