aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-04-07 13:51:20 -0400
committerJason R. Coombs <jaraco@jaraco.com>2012-04-07 13:51:20 -0400
commit2d43eef466ba091d132cd3da740770c686d19444 (patch)
treeab5846e9002c7799e61721bc1aeca7ef0ff4503e
parented8d0afca6d513359e16b9e9acf409dd430b50de (diff)
downloadexternal_python_setuptools-2d43eef466ba091d132cd3da740770c686d19444.tar.gz
external_python_setuptools-2d43eef466ba091d132cd3da740770c686d19444.tar.bz2
external_python_setuptools-2d43eef466ba091d132cd3da740770c686d19444.zip
Make sure to un-monkey-patch the Distribution class when running test_no_setup_cfg. Otherwise, it breaks other tests (notably the new test_setup_requires_honors_fetch_params).
--HG-- branch : distribute extra : rebase_source : f54d67ea495c18ff1dc74d12ff96797e64abe5e1
-rw-r--r--setuptools/tests/test_easy_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index c5fb4d9d..d89c8ae3 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -103,7 +103,7 @@ class TestEasyInstallTest(unittest.TestCase):
opts = self.command_options
if 'easy_install' in opts:
assert 'find_links' not in opts['easy_install'], msg
- return self._old_parse_command_line
+ return self._old_parse_command_line()
Distribution._old_parse_command_line = Distribution.parse_command_line
Distribution.parse_command_line = _parse_command_line
@@ -115,6 +115,7 @@ class TestEasyInstallTest(unittest.TestCase):
finally:
os.chdir(old_wd)
shutil.rmtree(dir)
+ Distribution.parse_command_line = Distribution._old_parse_command_line
def test_no_find_links(self):
# new option '--no-find-links', that blocks find-links added at