aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/tests/test_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-08-17 20:35:22 -0400
committerGitHub <noreply@github.com>2016-08-17 20:35:22 -0400
commitdede6cd06daa3a22cf4cda99eb32dae0339633c3 (patch)
tree92ee0a28afa0c77bfcb79f11052b188c018a1fd7 /pkg_resources/tests/test_resources.py
parent5305bc2d6162b53ce20c1d057c9108ce4b0eb7b7 (diff)
parent37f1dd197243d18667b1d7fee489013d53b3bd06 (diff)
downloadexternal_python_setuptools-dede6cd06daa3a22cf4cda99eb32dae0339633c3.tar.gz
external_python_setuptools-dede6cd06daa3a22cf4cda99eb32dae0339633c3.tar.bz2
external_python_setuptools-dede6cd06daa3a22cf4cda99eb32dae0339633c3.zip
Merge pull request #741 from stepshal/operators
Add missing whitespace around operators.
Diffstat (limited to 'pkg_resources/tests/test_resources.py')
-rw-r--r--pkg_resources/tests/test_resources.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index e4827fa5..f3aaeab1 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):