import pytest
def test_raises():
with pytest.raises(TypeError) as e:
a = 1 + "1"
exec_msg = e.value.args[0]
import pytest
def test_raises():
with pytest.raises(TypeError) as e:
a = 1 + "1"
exec_msg = e.value.args[0]