File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
from collections .abc import Mapping
7
7
from collections .abc import Sequence
8
8
from collections .abc import Sized
9
+ from contextlib import AbstractContextManager
9
10
from decimal import Decimal
10
11
import math
11
12
from numbers import Complex
15
16
from types import TracebackType
16
17
from typing import Any
17
18
from typing import cast
18
- from typing import ContextManager
19
19
from typing import final
20
20
from typing import overload
21
21
from typing import TYPE_CHECKING
@@ -978,7 +978,7 @@ def raises(
978
978
979
979
980
980
@final
981
- class RaisesContext (ContextManager [_pytest ._code .ExceptionInfo [E ]]):
981
+ class RaisesContext (AbstractContextManager [_pytest ._code .ExceptionInfo [E ]]):
982
982
def __init__ (
983
983
self ,
984
984
expected_exception : type [E ] | tuple [type [E ], ...],
You can’t perform that action at this time.
0 commit comments