schrodinger.test.pytest.faulthandler_setup module

Set up faulthandler inside of pytest

schrodinger.test.pytest.faulthandler_setup.set_timeout(config: _pytest.config.Config) Optional[int][source]

Modifies config to set a reasonable faulthandler_timeout.

Parameters

config – pytest configuration object

Returns

timeout of faulthandler in seconds, or None if not set

schrodinger.test.pytest.faulthandler_setup.get_faulthandler_timeout(config: _pytest.config.Config) int[source]

Return an appropriate timeout to trigger faulthandler.

Parameters

config – pytest configuration object

schrodinger.test.pytest.faulthandler_setup.get_existing_faulthandler_timeout(config: _pytest.config.Config) Optional[int][source]

Return whether a user has overriden the specification of faulthandler_timeout in ini or commandline.

Returns

number of seconds for faulthandler timeout