schrodinger.test.pytest.faulthandler_setup module

Set up faulthandler inside of pytest

schrodinger.test.pytest.faulthandler_setup.set_timeout(config)[source]

Modifies config to set a reasonable faulthandler_timeout.

Parameters

config (pytest.config.Config) – pytest configuration object

schrodinger.test.pytest.faulthandler_setup.get_faulthandler_timeout(config)[source]

Return an appropriate timeout to trigger faulthandler.

Parameters

config (pytest.config.Config) – pytest configuration object

Return type

float or None

schrodinger.test.pytest.faulthandler_setup.has_existing_faulthandler_timeout(config)[source]

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

Parameters

config (pytest.config.Config) – pytest configuration object