summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorpje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771>2005-06-05 01:20:09 +0000
committerpje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771>2005-06-05 01:20:09 +0000
commit93b96dcaeaa9404ccb8a0c4ecd1069fe57784d52 (patch)
treef72dc512baf3e5612c987b5041f9fa39a3dc324d /setuptools/tests
parent556386584717f3a4af7fdf7bdb4ba1b7bdaee78e (diff)
downloadpython-setuptools-93b96dcaeaa9404ccb8a0c4ecd1069fe57784d52.tar.gz
Make ``AvailableDistributions`` keep track of the desired platform/python.
Add a ``can_add()`` method that indicates whether a distribution matches the collection's desired platform and Python version. Fix a bug in ``Distribution.from_filename()`` when the filename has no Python version. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41038 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index b6470e4..f2a0d29 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -23,7 +23,7 @@ class DistroTests(TestCase):
def testCollection(self):
# empty path should produce no distributions
- ad = AvailableDistributions([])
+ ad = AvailableDistributions([], python=None)
self.assertEqual(list(ad), [])
self.assertEqual(len(ad),0)
self.assertEqual(ad.get('FooPkg'),None)