Commit 2d43eef4 authored by Jason R. Coombs's avatar Jason R. Coombs

Make sure to un-monkey-patch the Distribution class when running...

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
parent ed8d0afc
......@@ -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
......
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