File: pytest-8.4.patch

package info (click to toggle)
python-apischema 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,624 kB
  • sloc: python: 15,266; sh: 7; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Alexandre Detiste <alexandre.detiste@gmail.com>
Date: Fri, 29 Aug 2025 22:39:22 +0200
Subject: Fix deprecated pytest imports

---
 tests/unit/test_refs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit/test_refs.py b/tests/unit/test_refs.py
index f8955cb..9b0cef3 100644
--- a/tests/unit/test_refs.py
+++ b/tests/unit/test_refs.py
@@ -2,7 +2,7 @@ from dataclasses import dataclass
 from typing import Collection, Generic, List, Optional, Sequence, TypeVar
 
 import pytest
-from _pytest.python_api import raises
+from pytest import raises
 
 from apischema import settings, type_name
 from apischema.conversions import Conversion, LazyConversion