diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-03-19 11:10:22 -0700 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-03-19 11:10:22 -0700 |
commit | 6482552f94c24cdc52c9badf6923640a4e9efa4f (patch) | |
tree | 25f8a41d9cbcde38ffdc9af5d14ae6753d6afdc1 | |
parent | 0281ae614b34e729dd3f67b938bee9ce90c12b45 (diff) | |
download | external_python_setuptools-6482552f94c24cdc52c9badf6923640a4e9efa4f.tar.gz external_python_setuptools-6482552f94c24cdc52c9badf6923640a4e9efa4f.tar.bz2 external_python_setuptools-6482552f94c24cdc52c9badf6923640a4e9efa4f.zip |
Removed tests relevant to the co-existence of distribute and setuptools; retained some tests that are still relevant
--HG--
branch : Setuptools-Distribute merge
extra : rebase_source : c87a0b28f0bcd679ae5a34770b0f4fb908f2aee3
-rw-r--r-- | setuptools/tests/test_resources.py | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index 292b78d1..f10fc999 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -197,29 +197,6 @@ 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) - - # a unexisting version needs to work - ws = WorkingSet([]) - d3 = Distribution( - "/some/path", - project_name="setuptools") - ws.add(d3) - class EntryPointTests(TestCase): @@ -372,21 +349,13 @@ class RequirementsTests(TestCase): self.assertTrue(d("foo-0.3a3.egg") in r2) self.assertTrue(d("foo-0.3a5.egg") in r2) - def testDistributeSetuptoolsOverride(self): - # Plain setuptools or distribute mean we return distribute. - self.assertEqual( - Requirement.parse('setuptools').project_name, 'distribute') - self.assertEqual( - Requirement.parse('distribute').project_name, 'distribute') - # setuptools lower than 0.7 means distribute - self.assertEqual( - Requirement.parse('setuptools==0.6c9').project_name, 'distribute') - self.assertEqual( - Requirement.parse('setuptools==0.6c10').project_name, 'distribute') - self.assertEqual( - Requirement.parse('setuptools>=0.6').project_name, 'distribute') + def testSetuptoolsProjectName(self): + """ + The setuptools project should implement the setuptools package. + """ + self.assertEqual( - Requirement.parse('setuptools < 0.7').project_name, 'distribute') + Requirement.parse('setuptools').project_name, 'setuptools') # setuptools 0.7 and higher means setuptools. self.assertEqual( Requirement.parse('setuptools == 0.7').project_name, 'setuptools') |