Skip to content

Commit 40c08a9

Browse files
improved some formatting
1 parent 1987506 commit 40c08a9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test_cycler.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def test_add():
4343
c1 = cycler(c='rgb')
4444
c2 = cycler(lw=range(3))
4545
# addition
46-
_cycler_helper(c1+c2, 3, ['c', 'lw'], [list('rgb'), range(3)])
47-
_cycler_helper(c2+c1, 3, ['c', 'lw'], [list('rgb'), range(3)])
48-
_cycles_equal(c2+c1, c1+c2)
46+
_cycler_helper(c1 + c2, 3, ['c', 'lw'], [list('rgb'), range(3)])
47+
_cycler_helper(c2 + c1, 3, ['c', 'lw'], [list('rgb'), range(3)])
48+
_cycles_equal(c2 + c1, c1 + c2)
4949

5050

5151
def test_add_len_mismatch():
@@ -89,12 +89,12 @@ def test_inplace():
8989
def test_constructor():
9090
c1 = cycler(c='rgb')
9191
c2 = cycler(ec=c1)
92-
_cycler_helper(c1+c2, 3, ['c', 'ec'], [['r', 'g', 'b']]*2)
92+
_cycler_helper(c1 + c2, 3, ['c', 'ec'], [['r', 'g', 'b']] * 2)
9393
c3 = cycler(c=c1)
94-
_cycler_helper(c3+c2, 3, ['c', 'ec'], [['r', 'g', 'b']]*2)
94+
_cycler_helper(c3 + c2, 3, ['c', 'ec'], [['r', 'g', 'b']] * 2)
9595
# Using a non-string hashable
9696
c4 = cycler(1, range(3))
97-
_cycler_helper(c4+c1, 3, [1, 'c'], [range(3), ['r', 'g', 'b']])
97+
_cycler_helper(c4 + c1, 3, [1, 'c'], [range(3), ['r', 'g', 'b']])
9898

9999
# addition using cycler()
100100
_cycler_helper(cycler(c='rgb', lw=range(3)),
@@ -118,7 +118,7 @@ def test_failures():
118118

119119
c3 = cycler(ec=c1)
120120

121-
pytest.raises(ValueError, cycler, c=c2+c3)
121+
pytest.raises(ValueError, cycler, c=c2 + c3)
122122

123123

124124
def test_simplify():
@@ -130,12 +130,12 @@ def test_simplify():
130130

131131
def test_multiply():
132132
c1 = cycler(c='rgb')
133-
_cycler_helper(2*c1, 6, ['c'], ['rgb'*2])
133+
_cycler_helper(2 * c1, 6, ['c'], ['rgb' * 2])
134134

135135
c2 = cycler(ec=c1)
136136
c3 = c1 * c2
137137

138-
_cycles_equal(2*c3, c3*2)
138+
_cycles_equal(2 * c3, c3 * 2)
139139

140140

141141
def test_mul_fails():
@@ -208,7 +208,7 @@ def test_call():
208208
c_cycle = c()
209209
assert isinstance(c_cycle, cycle)
210210
j = 0
211-
for a, b in zip(2*c, c_cycle):
211+
for a, b in zip(2 * c, c_cycle):
212212
j += 1
213213
assert a == b
214214

@@ -373,7 +373,7 @@ def test_contains():
373373
assert 'a' not in b
374374
assert 'b' not in a
375375

376-
ab = a+b
376+
ab = a + b
377377

378378
assert 'a' in ab
379379
assert 'b' in ab

0 commit comments

Comments
 (0)