Skip to content

Commit 5647ea4

Browse files
committed
Linting.
1 parent 341ec54 commit 5647ea4

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

tests/seq_tests.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def __next__(self):
9898

9999

100100
class IterGen:
101-
"Sequence using iterator protocol defined with a generator"
101+
"""
102+
Sequence using iterator protocol defined with a generator.
103+
"""
102104

103105
def __init__(self, seqn):
104106
self.seqn = seqn
@@ -109,7 +111,9 @@ def __iter__(self):
109111

110112

111113
class IterNextOnly:
112-
"Missing __getitem__ and __iter__"
114+
"""
115+
Missing __getitem__ and __iter__.
116+
"""
113117

114118
def __init__(self, seqn):
115119
self.seqn = seqn
@@ -124,7 +128,9 @@ def __next__(self):
124128

125129

126130
class IterNoNext:
127-
"Iterator missing __next__()"
131+
"""
132+
Iterator missing __next__().
133+
"""
128134

129135
def __init__(self, seqn):
130136
self.seqn = seqn
@@ -135,7 +141,9 @@ def __iter__(self):
135141

136142

137143
class IterGenExc:
138-
"Test propagation of exceptions"
144+
"""
145+
Test propagation of exceptions.
146+
"""
139147

140148
def __init__(self, seqn):
141149
self.seqn = seqn
@@ -149,7 +157,9 @@ def __next__(self):
149157

150158

151159
class IterFuncStop:
152-
"Test immediate stop"
160+
"""
161+
Test immediate stop.
162+
"""
153163

154164
def __init__(self, seqn):
155165
pass
@@ -162,7 +172,10 @@ def __next__(self):
162172

163173

164174
def itermulti(seqn):
165-
"Test multiple tiers of iterators"
175+
"""
176+
Test multiple tiers of iterators.
177+
"""
178+
166179
return chain(map(lambda x: x, iterfunc(IterGen(Sequence(seqn)))))
167180

168181

0 commit comments

Comments
 (0)