Commit f3d7a63e authored by Jason R. Coombs's avatar Jason R. Coombs

Remove reset_setup_stop_context and reindent.

parent bf03c647
......@@ -426,21 +426,6 @@ def argv_context(repl):
yield
sys.argv[:] = old_argv
@contextlib.contextmanager
def reset_setup_stop_context():
"""
When the setuptools tests are run using setup.py test, and then
one wants to invoke another setup() command (such as easy_install)
within those tests, it's necessary to reset the global variable
in distutils.core so that the setup() command will run naturally.
"""
saved = distutils.core._setup_stop_after
if saved is None:
raise ValueError("Not Needed")
distutils.core._setup_stop_after = None
yield
distutils.core._setup_stop_after = saved
@contextlib.contextmanager
def quiet_context():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment