Jürg Billeter pushed to branch master at BuildStream / buildstream
Commits:
-
eee4b674
by Jürg Billeter at 2018-08-07T15:36:35Z
-
ea27e389
by Jürg Billeter at 2018-08-07T15:36:35Z
-
fa5a59f0
by Jürg Billeter at 2018-08-07T16:48:21Z
2 changed files:
Changes:
... | ... | @@ -846,6 +846,9 @@ class _CASRemote(): |
846 | 846 |
|
847 | 847 |
|
848 | 848 |
def _grouper(iterable, n):
|
849 |
- # pylint: disable=stop-iteration-return
|
|
850 | 849 |
while True:
|
851 |
- yield itertools.chain([next(iterable)], itertools.islice(iterable, n - 1))
|
|
850 |
+ try:
|
|
851 |
+ current = next(iterable)
|
|
852 |
+ except StopIteration:
|
|
853 |
+ return
|
|
854 |
+ yield itertools.chain([current], itertools.islice(iterable, n - 1))
|
... | ... | @@ -272,6 +272,5 @@ setup(name='BuildStream', |
272 | 272 |
'pytest-cov >= 2.5.0',
|
273 | 273 |
# Provide option to run tests in parallel, less reliable
|
274 | 274 |
'pytest-xdist',
|
275 |
- 'pytest >= 3.1.0',
|
|
276 |
- 'pylint >= 1.8 , < 2'],
|
|
275 |
+ 'pytest >= 3.1.0'],
|
|
277 | 276 |
zip_safe=False)
|