File: pytest8.4.patch

package info (click to toggle)
spopt 0.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,336 kB
  • sloc: python: 7,234; makefile: 38
file content (25 lines) | stat: -rw-r--r-- 758 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
22
23
24
25
--- a/spopt/tests/conftest.py
+++ b/spopt/tests/conftest.py
@@ -152,19 +152,19 @@
 
 
 @pytest.fixture
-def loc_raises_diff_crs() -> _pytest.python_api.RaisesContext:
+def loc_raises_diff_crs():
     """`locate` error"""
     return pytest.raises(ValueError, match="Geodataframes crs are different: ")
 
 
 @pytest.fixture
-def loc_raises_infeasible() -> _pytest.python_api.RaisesContext:
+def loc_raises_infeasible():
     """`locate` error"""
     return pytest.raises(RuntimeError, match="Model is not solved: Infeasible.")
 
 
 @pytest.fixture
-def loc_raises_fac_constr() -> _pytest.python_api.RaisesContext:
+def loc_raises_fac_constr():
     """`locate` error"""
     return pytest.raises(AttributeError, match="Before setting facility constraint")