diff options
author | PJ Eby <distutils-sig@python.org> | 2005-07-24 17:59:27 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-07-24 17:59:27 +0000 |
commit | 377e21167f0625324c391dc47d83cf91cdea05e9 (patch) | |
tree | 3bd7809dc2d8c5a5dbdf01fc82229a8eea463319 /setuptools/tests/test_resources.py | |
parent | 2816cd02c08669368cdf4baae49373a5bb8e1a53 (diff) | |
download | python-setuptools-bitbucket-377e21167f0625324c391dc47d83cf91cdea05e9.tar.gz |
Fix eager resource extraction. Add eager_resources setup() argument. Add
support for obtaining project-level resources by making get_provider()
accept Requirement objects.
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r-- | setuptools/tests/test_resources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index 8e4dbf07..3345311a 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -146,7 +146,7 @@ class DistroTests(TestCase): # Request an extra that causes an unresolved dependency for "Baz" self.assertRaises( DistributionNotFound, ws.resolve,parse_requirements("Foo[bar]"), ad - ) + ) Baz = Distribution.from_filename( "/foo_dir/Baz-2.1.egg", metadata=Metadata(('depends.txt', "Foo")) ) @@ -332,7 +332,7 @@ class ParseTests(TestCase): self.assertEqual(safe_version("2.3.4 20050521"), "2.3.4.20050521") self.assertEqual(safe_version("Money$$$Maker"), "Money-Maker") self.assertEqual(safe_version("peak.web"), "peak.web") - + def testSimpleRequirements(self): self.assertEqual( list(parse_requirements('Twis-Ted>=1.2-1')), |