diff options
author | tarek <none@none> | 2009-10-18 14:46:54 +0200 |
---|---|---|
committer | tarek <none@none> | 2009-10-18 14:46:54 +0200 |
commit | 07f1a31c3eb453aab91646834087f3258254990f (patch) | |
tree | eb811c9e037de792b519fad879a34f0129d08640 /tests/test_distribute_setup.py | |
parent | 33e3ec5eadb59ece949d4cad1231ff23780e4c02 (diff) | |
download | external_python_setuptools-07f1a31c3eb453aab91646834087f3258254990f.tar.gz external_python_setuptools-07f1a31c3eb453aab91646834087f3258254990f.tar.bz2 external_python_setuptools-07f1a31c3eb453aab91646834087f3258254990f.zip |
no_fake needs to be True by default fixes #74
--HG--
branch : distribute
extra : rebase_source : 158f5abb9528d7ea6cd436996d5022cb6bcda89e
Diffstat (limited to 'tests/test_distribute_setup.py')
-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() |