From 6482552f94c24cdc52c9badf6923640a4e9efa4f Mon Sep 17 00:00:00 2001
From: "Jason R. Coombs" <jaraco@jaraco.com>
Date: Tue, 19 Mar 2013 11:10:22 -0700
Subject: [PATCH] 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
---
 setuptools/tests/test_resources.py | 43 +++++-------------------------
 1 file 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')
-- 
2.30.9