Skip to content

Fixing compiler handling of parens around boolean comparisons.#938

Merged
davidism merged 1 commit intopallets:masterfrom
stevenorum:master
Oct 7, 2019
Merged

Fixing compiler handling of parens around boolean comparisons.#938
davidism merged 1 commit intopallets:masterfrom
stevenorum:master

Conversation

@stevenorum
Copy link
Copy Markdown
Contributor

In response to: [BUG] Unexpected TypeError when using boolean test inside numeric expression

Full details in the latest post in that issue.

Not sure if this is the right place for a unit test, or if this is the right test; I didn't see any compiler-specific tests, and I wasn't able to get them running successfully on my laptop. However, I applied the change directly to the installed version of jinja2 and it fixed the problem, and the code in the unit test in the commit executes as desired when run on its own.

@davidism davidism added this to the 2.11.0 milestone Oct 7, 2019
@davidism davidism merged commit f1d199a into pallets:master Oct 7, 2019
davidism added a commit that referenced this pull request Oct 7, 2019
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants