@contextlib.contextmanager
def reset_setup_stop_context():
 setup_stop_after = distutils.core._setup_stop_after
 distutils.core._setup_stop_after = None
 (yield)
 distutils.core._setup_stop_after = setup_stop_after

@ contextlib . contextmanager def reset_setup_stop_context ( ) : setup_stop_after = distutils . core . _setup_stop_after distutils . core . _setup_stop_after = None ( yield ) distutils . core . _setup_stop_after = setup_stop_after
when the setuptools tests are run using setup .