diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-10-18 11:11:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-18 11:11:59 -0400 |
commit | 7d984bbdc111fcdfef816265e159a3054dbee132 (patch) | |
tree | 3a25ce5765a8c9ae633a3eaeec1ce88f7b382e21 /pkg_resources/tests/test_resources.py | |
parent | f774a0be095c3873c2881d393605fefa5ca0d0d6 (diff) | |
parent | 31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96 (diff) | |
download | external_python_setuptools-7d984bbdc111fcdfef816265e159a3054dbee132.tar.gz external_python_setuptools-7d984bbdc111fcdfef816265e159a3054dbee132.tar.bz2 external_python_setuptools-7d984bbdc111fcdfef816265e159a3054dbee132.zip |
Merge pull request #820 from stepshal/blank
Fix quantity of blank lines.
Diffstat (limited to 'pkg_resources/tests/test_resources.py')
-rw-r--r-- | pkg_resources/tests/test_resources.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 3b13884b..00ca7426 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -36,7 +36,6 @@ dist_from_fn = pkg_resources.Distribution.from_filename class TestDistro: - def testCollection(self): # empty path should produce no distributions ad = pkg_resources.Environment([], platform=None, python=None) @@ -313,7 +312,6 @@ class TestDistro: class TestWorkingSet: - def test_find_conflicting(self): ws = WorkingSet([]) Foo = Distribution.from_filename("/foo_dir/Foo-1.2.egg") @@ -356,7 +354,6 @@ class TestWorkingSet: class TestEntryPoints: - def assertfields(self, ep): assert ep.name == "foo" assert ep.module_name == "pkg_resources.tests.test_resources" @@ -457,7 +454,6 @@ class TestEntryPoints: class TestRequirements: - def testBasics(self): r = Requirement.parse("Twisted>=1.2") assert str(r) == "Twisted>=1.2" @@ -538,7 +534,6 @@ class TestRequirements: class TestParsing: - def testEmptyParse(self): assert list(parse_requirements('')) == [] @@ -701,6 +696,7 @@ class TestParsing: value of parse_version. The new parse_version returns a Version class which needs to support this behavior, at least for now. """ + def buildout(parsed_version): _final_parts = '*final-', '*final' @@ -709,6 +705,7 @@ class TestParsing: if (part[:1] == '*') and (part not in _final_parts): return False return True + return _final_version(parsed_version) assert buildout(parse_version("1.0")) |