diff options
| author | insiv <insiv@openmailbox.org> | 2016-08-17 22:24:43 +0700 |
|---|---|---|
| committer | insiv <insiv@openmailbox.org> | 2016-08-17 22:24:43 +0700 |
| commit | 37f1dd197243d18667b1d7fee489013d53b3bd06 (patch) | |
| tree | 64fd6cd2e696b1b822421a5526b21c035f7ac352 /pkg_resources/tests | |
| parent | 0addcafeb1c80ba1ffc57756ffe7e3f0210cee1f (diff) | |
| download | python-setuptools-git-37f1dd197243d18667b1d7fee489013d53b3bd06.tar.gz | |
Add missing whitespace around operators.
Diffstat (limited to 'pkg_resources/tests')
| -rw-r--r-- | pkg_resources/tests/test_resources.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index e0dbb652..3649a30a 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -164,7 +164,7 @@ class TestDistro: ad.add(Baz) # Activation list now includes resolved dependency - assert list(ws.resolve(parse_requirements("Foo[bar]"), ad)) ==[Foo,Baz] + assert list(ws.resolve(parse_requirements("Foo[bar]"), ad)) == [Foo,Baz] # Requests for conflicting versions produce VersionConflict with pytest.raises(VersionConflict) as vc: ws.resolve(parse_requirements("Foo==1.2\nFoo!=1.2"), ad) @@ -426,7 +426,7 @@ class TestEntryPoints: m = EntryPoint.parse_map({'xyz':self.submap_str}) self.checkSubMap(m['xyz']) assert list(m.keys()) == ['xyz'] - m = EntryPoint.parse_map("[xyz]\n"+self.submap_str) + m = EntryPoint.parse_map("[xyz]\n" + self.submap_str) self.checkSubMap(m['xyz']) assert list(m.keys()) == ['xyz'] with pytest.raises(ValueError): @@ -644,7 +644,7 @@ class TestParsing: def testVersionOrdering(self): def c(s1,s2): p1, p2 = parse_version(s1),parse_version(s2) - assert p1<p2, (s1,s2,p1,p2) + assert p1 < p2, (s1,s2,p1,p2) c('2.1','2.1.1') c('2a1','2b0') @@ -663,14 +663,14 @@ class TestParsing: c('2.1.0-rc1','2.1.0') c('2.1dev','2.1a0') - torture =""" + torture = """ 0.80.1-3 0.80.1-2 0.80.1-1 0.79.9999+0.80.0pre4-1 0.79.9999+0.80.0pre2-3 0.79.9999+0.80.0pre2-2 0.77.2-1 0.77.1-1 0.77.0-1 """.split() for p,v1 in enumerate(torture): - for v2 in torture[p+1:]: + for v2 in torture[p + 1:]: c(v2,v1) def testVersionBuildout(self): @@ -764,7 +764,7 @@ class TestNamespaces: pkg_resources._namespace_packages = saved_ns_pkgs sys.path = saved_sys_path - issue591 = pytest.mark.xfail(platform.system()=='Windows', reason="#591") + issue591 = pytest.mark.xfail(platform.system() == 'Windows', reason="#591") @issue591 def test_two_levels_deep(self, symlinked_tmpdir): |
