diff options
| author | pje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2005-06-05 01:20:09 +0000 |
|---|---|---|
| committer | pje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2005-06-05 01:20:09 +0000 |
| commit | 93b96dcaeaa9404ccb8a0c4ecd1069fe57784d52 (patch) | |
| tree | f72dc512baf3e5612c987b5041f9fa39a3dc324d /setuptools/tests | |
| parent | 556386584717f3a4af7fdf7bdb4ba1b7bdaee78e (diff) | |
| download | python-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.py | 2 |
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) |
