feat: add gated CH5 quiver support and unified regression runner

This commit is contained in:
shen
2026-10-22 17:41:47 -07:00
parent 60ed66692e
commit 3784137b4f
39 changed files with 1617 additions and 23 deletions
+3
View File
@@ -35,6 +35,9 @@ class CompatTests(unittest.TestCase):
m.Window=type('Window',(Window,),{});m.ImageBox=type('Image',(Image,),{})
sys.modules['ui']=m;self.ui=m
source=(ROOT/'src/platform/ScriptLib/Ava2UICompatScript.inc').read_text().split('R"PY(',1)[1].rsplit(')PY";',1)[0]
# The embedded runtime is Python 2; adapt only its exec statement for this
# Python 3 fixture. Native C++ tests run the unmodified runtime script.
source=source.replace('exec code in dict','exec(code, dict)')
exec(source,{})
def tearDown(self):
if self.previous is None:sys.modules.pop('ui',None)