diff options
author | Reinout van Rees <reinout@vanrees.org> | 2009-10-14 15:22:44 +0200 |
---|---|---|
committer | Reinout van Rees <reinout@vanrees.org> | 2009-10-14 15:22:44 +0200 |
commit | 03a95e191c1e128a04911ae415a36cbcb6ab1901 (patch) | |
tree | 7e882ad4026949441a43528aeee89e89a5816474 /setuptools/tests/test_resources.py | |
parent | dd2b4ffb2f582bf8270c0ceed490bf035a9e553b (diff) | |
download | external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.tar.gz external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.tar.bz2 external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.zip |
an error is raised when installing a 0.7 setuptools with distribute
--HG--
branch : distribute
extra : rebase_source : f68fe9818972a09d858f2bb59ef47682353f600d
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r-- | setuptools/tests/test_resources.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index c9236e88..6a89e8a8 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -187,10 +187,21 @@ class DistroTests(TestCase): ) self.assertRaises(UnknownExtra, d.requires, ["foo"]) - - - - + def testSetuptoolsDistributeCombination(self): + # Ensure that installing a 0.7-series setuptools fails. PJE says that + # it will not co-exist. + ws = WorkingSet([]) + d = Distribution( + "/some/path", + project_name="setuptools", + version="0.7a1") + self.assertRaises(ValueError, ws.add, d) + # A 0.6-series is no problem + d2 = Distribution( + "/some/path", + project_name="setuptools", + version="0.6c9") + ws.add(d2) |