aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 3659d53f..6358c934 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -435,10 +435,10 @@ def reset_setup_stop_context():
within those tests, it's necessary to reset the global variable
in distutils.core so that the setup() command will run naturally.
"""
- setup_stop_after = distutils.core._setup_stop_after
+ saved = distutils.core._setup_stop_after
distutils.core._setup_stop_after = None
yield
- distutils.core._setup_stop_after = setup_stop_after
+ distutils.core._setup_stop_after = saved
@contextlib.contextmanager