aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-24 17:59:27 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-24 17:59:27 +0000
commit8618cfa8ac93431ffcede4f3987b559449bbbcb8 (patch)
tree3bd7809dc2d8c5a5dbdf01fc82229a8eea463319 /setuptools/tests/test_resources.py
parent68b9a791009af00f1fb16fc3c59b0cc4de8ea7c9 (diff)
downloadexternal_python_setuptools-8618cfa8ac93431ffcede4f3987b559449bbbcb8.tar.gz
external_python_setuptools-8618cfa8ac93431ffcede4f3987b559449bbbcb8.tar.bz2
external_python_setuptools-8618cfa8ac93431ffcede4f3987b559449bbbcb8.zip
Fix eager resource extraction. Add eager_resources setup() argument. Add
support for obtaining project-level resources by making get_provider() accept Requirement objects. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041151
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py4
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')),