diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-06-05 01:20:09 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-06-05 01:20:09 +0000 |
| commit | 6b7bb085769cca002d9b5d3cbc4c3612148f9598 (patch) | |
| tree | f72dc512baf3e5612c987b5041f9fa39a3dc324d /setuptools/tests/test_resources.py | |
| parent | ecd324d7942eac9d09d274e3a70b0e2cd5106057 (diff) | |
| download | python-setuptools-git-6b7bb085769cca002d9b5d3cbc4c3612148f9598.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.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041038
Diffstat (limited to 'setuptools/tests/test_resources.py')
| -rw-r--r-- | setuptools/tests/test_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index b6470e4b..f2a0d296 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) |
