-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support comprehensions inside functions when use strict_undefined flag. #386
Conversation
wow I dig this, you're into mako now. great let's run the CI |
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.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision daffd38 of this pull request into gerrit so we can run tests and reviews and stuff
New Gerrit review created for change daffd38: https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5147 |
can you add a changelog file? thanks |
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.
this is great.
it needs:
- a changelog file, like the other one
- the fixes: line:
Fixes: #320
Closes: #386
Pull-request: https://github.com/sqlalchemy/mako/pull/386
Pull-request-sha: daffd3832b4adab291625e1e6efcdb56f8d0d05e
Change-Id: I0591873a83837f8f35b0963c0536df1e2675012f
test/test_template.py
Outdated
@@ -1717,3 +1717,62 @@ def test_inline_percent(self): | |||
"% foo", | |||
"bar %% baz", | |||
] | |||
|
|||
def test_lsitcomp_in_func_strict(self): |
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.
typo
Closes: sqlalchemy#386 Pull-request: sqlalchemy#386 Pull-request-sha: 7840ad3 Change-Id: I0591873a83837f8f35b0963c0536df1e2675012f
daffd38
to
cc6a3e0
Compare
All has been updated. |
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.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision cc6a3e0 of this pull request into gerrit so we can run tests and reviews and stuff
Patchset cc6a3e0 added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5147 |
Michael Bayer (zzzeek) wrote: thanks! View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5147 |
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5147 has been merged. Congratulations! :) |
Fixes: #320
Now the test code works as expected if strict_undefined is set to true:
output: