-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Missing test coverage from pull request #1511? #1806
Comments
(note: opened this as a separate issue thread since the existing thread(s) have been locked) |
Happy to consider a PR that fixes this or adds tests. |
Work-in-progress at https://github.com/openculinary/jinja/tree/issue-1806/pr-1511-additional-test-coverage:
|
Does the test coverage offered in #1807 seem reasonable for this? (that's one of my pull requests, and I'm trying to close/refresh a few that have been open for a while) |
Seems fine, just haven't had time to get to merges here. |
As part of pull request #1511, the changes may have fixed a bug related to native type rendering for iterator; it could be worth adding test coverage related to that.
Before #1511, the code was calling
itertools.islice(values, 2)
to retrieve the head elements from avalues
collection (potentially of an iterator type) and then usingitertools.chain(head, values)
to subsequently produce output.In the case where
values
is an iterator, I think that works correctly. But in cases wherevalues
is not an iterator, it can result in output duplication (something that I think #1511 indirectly resolves with this check).For example:
The text was updated successfully, but these errors were encountered: