Lines Matching full:pytest
4 import pytest
11 with pytest.raises(RuntimeError) as excinfo:
17 with pytest.raises(RuntimeError) as excinfo:
21 with pytest.raises(ValueError) as excinfo:
27 with pytest.raises(RuntimeError) as excinfo:
31 with pytest.raises(ValueError) as excinfo:
35 with pytest.raises(ValueError) as excinfo:
39 with pytest.raises(TypeError) as excinfo:
43 with pytest.raises(StopIteration) as excinfo:
55 if hasattr(pytest, unraisable): # Python >= 3.8 and pytest >= 6
56 dec = pytest.mark.filterwarnings("ignore::pytest.{}".format(unraisable))
69 # Don't take `sys.unraisablehook`, as that's overwritten by pytest
79 # Use monkeypatch so pytest can apply and remove the patch as appropriate
99 with pytest.raises(m.MyException) as excinfo:
104 with pytest.raises(RuntimeError) as excinfo:
109 with pytest.raises(RuntimeError) as excinfo:
114 with pytest.raises(m.MyException) as excinfo:
119 with pytest.raises(RuntimeError) as excinfo:
126 with pytest.raises(OverflowError) as excinfo:
130 with pytest.raises(m.MyException5) as excinfo:
135 with pytest.raises(m.MyException5) as excinfo:
140 with pytest.raises(m.MyException5_1) as excinfo:
144 with pytest.raises(m.MyException5) as excinfo:
169 with pytest.raises(m.MyException) as excinfo:
197 with pytest.raises(m.MyException5) as excinfo:
208 with pytest.raises(TypeError):