jinja/tests
Kevin Brown-Silva 66587ce989
Fix bug where set would sometimes fail within if
There was a bug that came as the result of an early optimization done
within ID tracking that caused loading parameters to fail in a very
specific and rare edge case. That edge case only occurred when the
parameter was being set within all 3 standard branches of an if block,
since the optimization would assume that the parameter was never being
referenced and was only ever being set. This would cause the variable to
be set to undefined.

The fix for this was to remove the optimization and still continue to
load in the parameter even if it is set in all 3 branches.
2024-12-21 09:40:06 -08:00
..
res Revert "PackageLoader doesn't depend on setuptools" 2020-03-30 10:11:22 -07:00
conftest.py Use pathlib in some test places 2021-05-18 10:30:11 -07:00
test_api.py Bugfix: wrong default argument for Environment.overlay(enable_async) parameter 2024-12-19 18:22:32 -08:00
test_async_filters.py make unique filter async-aware 2024-12-19 07:19:13 -08:00
test_async.py test on trio, fix all missing aclose related warnings (#1960) 2024-05-11 15:01:12 -07:00
test_bytecode_cache.py Merge branch '2.11.x' 2020-02-05 20:39:04 -08:00
test_compile.py fix f-string syntax error in code generation 2024-12-19 18:08:42 -08:00
test_core_tags.py Add support for namespaces in tuple assignment 2024-12-20 14:09:40 -08:00
test_debug.py Merge branch '3.0.x' 2021-11-05 07:22:41 -07:00
test_ext.py Make nested-trans-block exceptions nicer 2024-01-10 14:27:09 -08:00
test_filters.py int filter handles OverflowError to handle scientific notation 2024-12-19 07:58:25 -08:00
test_idtracking.py add required attribute to blocks 2021-01-29 10:28:39 -05:00
test_imports.py imported macros can access template globals in async mode 2021-10-04 13:49:13 -07:00
test_inheritance.py satisfy formatter, linter, and strict mypy 2024-04-23 09:29:26 -07:00
test_lexnparse.py parse hex, octal, and binary integer literals 2021-04-05 10:35:57 -07:00
test_loader.py separate messages, add test 2024-12-19 20:15:10 -08:00
test_nativetypes.py use env.concat when calling block reference 2024-12-19 07:12:43 -08:00
test_nodes.py Use object.__hash__ for Node.__hash__ 2021-11-09 09:12:22 -08:00
test_pickle.py async_variant filters are pickleable 2022-03-07 07:52:04 -08:00
test_regression.py Fix bug where set would sometimes fail within if 2024-12-21 09:40:06 -08:00
test_runtime.py preserve __slots__ on Undefined classes 2024-12-19 08:11:49 -08:00
test_security.py sandbox indirect calls to str.format 2024-12-19 12:34:27 -08:00
test_tests.py Markup and escape should be imported from markupsafe 2021-04-10 10:22:24 -07:00
test_utils.py don't apply urlize to @a@b 2024-12-19 20:37:58 -08:00