@@ -132,7 +132,7 @@ def test_build_with_dockerignore(self):
132
132
path = base_dir ,
133
133
tag = tag ,
134
134
)
135
- for chunk in stream :
135
+ for _chunk in stream :
136
136
pass
137
137
138
138
c = self .client .create_container (tag , ['find' , '/test' , '-type' , 'f' ])
@@ -160,7 +160,7 @@ def test_build_with_buildargs(self):
160
160
fileobj = script , tag = 'buildargs' , buildargs = {'test' : 'OK' }
161
161
)
162
162
self .tmp_imgs .append ('buildargs' )
163
- for chunk in stream :
163
+ for _chunk in stream :
164
164
pass
165
165
166
166
info = self .client .inspect_image ('buildargs' )
@@ -180,7 +180,7 @@ def test_build_shmsize(self):
180
180
fileobj = script , tag = tag , shmsize = shmsize
181
181
)
182
182
self .tmp_imgs .append (tag )
183
- for chunk in stream :
183
+ for _chunk in stream :
184
184
pass
185
185
186
186
# There is currently no way to get the shmsize
@@ -198,7 +198,7 @@ def test_build_isolation(self):
198
198
isolation = 'default'
199
199
)
200
200
201
- for chunk in stream :
201
+ for _chunk in stream :
202
202
pass
203
203
204
204
@requires_api_version ('1.23' )
@@ -213,7 +213,7 @@ def test_build_labels(self):
213
213
fileobj = script , tag = 'labels' , labels = labels
214
214
)
215
215
self .tmp_imgs .append ('labels' )
216
- for chunk in stream :
216
+ for _chunk in stream :
217
217
pass
218
218
219
219
info = self .client .inspect_image ('labels' )
@@ -230,7 +230,7 @@ def test_build_with_cache_from(self):
230
230
231
231
stream = self .client .build (fileobj = script , tag = 'build1' )
232
232
self .tmp_imgs .append ('build1' )
233
- for chunk in stream :
233
+ for _chunk in stream :
234
234
pass
235
235
236
236
stream = self .client .build (
@@ -271,7 +271,7 @@ def test_build_container_with_target(self):
271
271
fileobj = script , target = 'first' , tag = 'build1'
272
272
)
273
273
self .tmp_imgs .append ('build1' )
274
- for chunk in stream :
274
+ for _chunk in stream :
275
275
pass
276
276
277
277
info = self .client .inspect_image ('build1' )
@@ -300,7 +300,7 @@ def test_build_with_network_mode(self):
300
300
)
301
301
302
302
self .tmp_imgs .append ('dockerpytest_customnetbuild' )
303
- for chunk in stream :
303
+ for _chunk in stream :
304
304
pass
305
305
306
306
assert self .client .inspect_image ('dockerpytest_customnetbuild' )
@@ -365,7 +365,7 @@ def build_squashed(squash):
365
365
fileobj = script , tag = tag , squash = squash
366
366
)
367
367
self .tmp_imgs .append (tag )
368
- for chunk in stream :
368
+ for _chunk in stream :
369
369
pass
370
370
371
371
return self .client .inspect_image (tag )
0 commit comments