diff --git a/test/test_oeffis.py b/test/test_oeffis.py index 04a00cc..bc06858 100644 --- a/test/test_oeffis.py +++ b/test/test_oeffis.py @@ -182,13 +182,13 @@ class Oeffis: """ def __init__(self, userdata=None): - l = LibOeffis.instance() - self.ctx = l.oeffis_new(userdata) # type: ignore + lib = LibOeffis.instance() + self.ctx = lib.oeffis_new(userdata) # type: ignore def wrapper(func): return lambda *args, **kwargs: func(self.ctx, *args, **kwargs) - for api in l._api_prototypes: + for api in lib._api_prototypes: # skip some APIs that are not be exposed because they don't make sense # to have in python. if api.name not in ( @@ -197,11 +197,11 @@ class Oeffis: "oeffis_get_user_data", "oeffis_set_user_data", ): - func = getattr(l, api.name) + func = getattr(lib, api.name) setattr(self, api.basename, wrapper(func)) - for e in l._enums: - val = getattr(l, e.name) + for e in lib._enums: + val = getattr(lib, e.name) setattr(self, e.basename, val) @property