Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert range to list so that we can use reduce #3031

Merged
merged 1 commit into from
Mar 22, 2019

Conversation

kinow
Copy link
Member

@kinow kinow commented Mar 22, 2019

I think this one slipped in during the Python3 conversion. The real issue was in the lack of a test to cover this code.

Added a test that fails with previous code, as calling reverse() on the result of range (some view/iterator, not a list) results in an error. This could cause parsing suites to fail.

Should not be backported to 7.x, as this happens only with Py3.

@kinow kinow added bug Something is wrong :( small labels Mar 22, 2019
@kinow kinow added this to the cylc-8.0a1 milestone Mar 22, 2019
@kinow kinow self-assigned this Mar 22, 2019
@oliver-sanders oliver-sanders merged commit 54efacb into cylc:master Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants