============================= test session starts ============================== platform linux -- Python 3.9.20, pytest-8.4.2, pluggy-1.6.0 -- /opt/miniconda3/envs/testbed/bin/python cachedir: .pytest_cache rootdir: /tmp plugins: xdist-3.8.0 collecting ... collected 3 items test_exception_chain.py::test_chained_exception_with_from FAILED [ 33%] test_exception_chain.py::test_no_chain FAILED [ 66%] =================================== FAILURES =================================== _______________________ test_chained_exception_with_from _______________________ def test_chained_exception_with_from(): try: try: > raise ValueError(11) E ValueError: 11 test_exception_chain.py:6: ValueError The above exception was the direct cause of the following exception: def test_chained_exception_with_from(): try: try: raise ValueError(11) except Exception as e1: > raise ValueError(12) from e1 E ValueError: 12 test_exception_chain.py:8: ValueError The above exception was the direct cause of the following exception: def test_chained_exception_with_from(): try: try: raise ValueError(11) except Exception as e1: raise ValueError(12) from e1 except Exception as e2: > raise ValueError(13) from e2 E ValueError: 13 test_exception_chain.py:10: ValueError ________________________________ test_no_chain _________________________________ def test_no_chain(): > raise ValueError(31) E ValueError: 31 test_exception_chain.py:24: ValueError =========================== short test summary info ============================ FAILED test_exception_chain.py::test_chained_exception_with_from - ValueError... FAILED test_exception_chain.py::test_no_chain - ValueError: 31 ============================== 2 failed in 0.11s ===============================