-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-133213: Add tests for string.templatelib.TemplateIter
#133215
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
Conversation
|
||
def test_iter(self): | ||
x = 1 | ||
res = list(iter(t'abc {x} yz')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also test two interpolations next to each other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have tests for the iteration, I just test that direct iter()
call work correctly.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
I did not include
pickle
tests, because I found a problem with it. I will open a separate issue for that, it will require some C code modifications.TemplateIter
tests #133213