Commits

Jason R. Coombs committed 45912a9

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).

  • Participants
  • Parent commits 94e2308

Comments (0)

Files changed (1)

File setuptools/tests/test_easy_install.py

             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
         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