[Python-checkins] python/nondist/sandbox/setuptools/setuptools/tests test_resources.py, 1.10, 1.11

pje@users.sourceforge.net pje at users.sourceforge.net
Sun Jun 5 03:20:12 CEST 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2589/setuptools/tests
Modified Files:
	test_resources.py 
Log Message:
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.
Index: test_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests/test_resources.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- test_resources.py	23 May 2005 01:56:27 -0000	1.10
+++ test_resources.py	5 Jun 2005 01:20:09 -0000	1.11
@@ -23,7 +23,7 @@
 
 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /