diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_distribute_setup.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_distribute_setup.py b/tests/test_distribute_setup.py index 4c9079a7..4151587f 100644 --- a/tests/test_distribute_setup.py +++ b/tests/test_distribute_setup.py @@ -57,5 +57,17 @@ class TestSetup(unittest.TestCase): distribute_setup.python_cmd = _faked _install(self.tarball) + def test_use_setuptools(self): + self.assertEquals(use_setuptools(), None) + + # make sure fake_setuptools is not called by default + import pkg_resources + del pkg_resources._distribute + def fake_setuptools(*args): + raise AssertionError + + pkg_resources._fake_setuptools = fake_setuptools + use_setuptools() + if __name__ == '__main__': unittest.main() |