Move modtest to the new extension module API

pull/12333/head
Tristan Partin 1 year ago committed by Eli Schwartz
parent 54c30c96a0
commit 87993b8210
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 6
      mesonbuild/modules/modtest.py

@ -15,7 +15,7 @@
from __future__ import annotations
import typing as T
from . import ExtensionModule, ModuleInfo
from . import NewExtensionModule, ModuleInfo
from ..interpreterbase import noKwargs, noPosargs
if T.TYPE_CHECKING:
@ -24,12 +24,12 @@ if T.TYPE_CHECKING:
from ..interpreterbase.baseobjects import TYPE_kwargs, TYPE_var
class TestModule(ExtensionModule):
class TestModule(NewExtensionModule):
INFO = ModuleInfo('modtest')
def __init__(self, interpreter: Interpreter) -> None:
super().__init__(interpreter)
super().__init__()
self.methods.update({
'print_hello': self.print_hello,
})

Loading…
Cancel
Save