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 66from collections .abc import Mapping
77from collections .abc import Sequence
88from collections .abc import Sized
9+ from contextlib import AbstractContextManager
910from decimal import Decimal
1011import math
1112from numbers import Complex
1516from types import TracebackType
1617from typing import Any
1718from typing import cast
18- from typing import ContextManager
1919from typing import final
2020from typing import overload
2121from typing import TYPE_CHECKING
@@ -978,7 +978,7 @@ def raises(
978978
979979
980980@final
981- class RaisesContext (ContextManager [_pytest ._code .ExceptionInfo [E ]]):
981+ class RaisesContext (AbstractContextManager [_pytest ._code .ExceptionInfo [E ]]):
982982 def __init__ (
983983 self ,
984984 expected_exception : type [E ] | tuple [type [E ], ...],
You can’t perform that action at this time.
0 commit comments