Python: Fix access to globals when there's more than one

The getter for the global didn't capture the correct global_class,
just the last iteration.

This fixes the broken printer demo.
This commit is contained in:
Simon Hausmann 2024-07-11 21:59:36 +02:00
parent 86cde942b7
commit 0b6381d012
3 changed files with 15 additions and 5 deletions

View file

@ -45,6 +45,8 @@ def test_load_file_wrapper():
assert instance.MyGlobal.minus_one(100) == 99
assert instance.SecondGlobal.second == "second"
del instance