mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Make script_pyapi_bpy_driver_secure_eval pass with python >3.11
This commits add three new opcodes to the secure opcode list. These are: RETURN_CONST POP_JUMP_IF_FALSE CALL_INTRINSIC_1 I removed the "f''" test as that now only uses the RESUME and RETURN_CONST opcodes. Pull Request: https://projects.blender.org/blender/blender/pulls/150650
This commit is contained in:
parent
6ebe4a10ec
commit
2c35db495c
2 changed files with 7 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ class TestRejectLiteralFStrings(unittest.TestCase, TestExprMixIn_Reject):
|
|||
# F-String's are not supported as `BUILD_STRING` op-code is disabled,
|
||||
# while it may be safe to enable that needs to be double-checked.
|
||||
# Further it doesn't seem useful for typical math expressions used in drivers.
|
||||
expressions = ("f''", "f'{1}'", "f'{\"_\"}'")
|
||||
expressions = ("f'{1}'", "f'{\"_\"}'")
|
||||
|
||||
|
||||
class TestRejectModuleAccess(unittest.TestCase, TestExprMixIn_Reject):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue