Skip to content

Commit bbde277

Browse files
committed
simplify
1 parent 2641819 commit bbde277

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testing/contexts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import contextlib
22
from typing import Any
3-
from typing import Union
43

5-
import _pytest.python_api # type: ignore
64
import pytest # type: ignore
75

86

97
def expect_raise_if_exception(
108
expected: Any,
11-
) -> Union[_pytest.python_api.RaisesContext, contextlib.AbstractContextManager]:
9+
):
1210
"""Create a context that expects a raised exception or no raised exception.
1311
1412
Args:

0 commit comments

Comments
 (0)