def test_exception_trapped(self): with setuptools.sandbox.ExceptionSaver(): raise ValueError("details")