diff options
| author | tarek <devnull@localhost> | 2009-10-18 14:46:54 +0200 |
|---|---|---|
| committer | tarek <devnull@localhost> | 2009-10-18 14:46:54 +0200 |
| commit | e375f3055b94952178cfba7e7b564a94fff7b6d5 (patch) | |
| tree | 9449c93957b49cc4fdec54f413e5a132a89847f7 /tests | |
| parent | 90d465b96def48611186e2f54afa437c1b4bc885 (diff) | |
| download | python-setuptools-bitbucket-e375f3055b94952178cfba7e7b564a94fff7b6d5.tar.gz | |
no_fake needs to be True by default fixes #74
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() |
