feat: add gated CH5 quiver support and unified regression runner
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user