aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-12-02 11:47:11 -0800
committerEli Schwartz <eschwartz93@gmail.com>2022-12-05 15:20:09 -0500
commit010f525cc5d632b2d7da5cf9b80a1b758841ba71 (patch)
treebf53f9ea1a6e967c11de49f5afc08f60c2b44555 /mesonbuild/modules
parent99dfc988ebe79ff5461fc01a246916becf0c9c5c (diff)
downloadmeson-010f525cc5d632b2d7da5cf9b80a1b758841ba71.zip
meson-010f525cc5d632b2d7da5cf9b80a1b758841ba71.tar.gz
meson-010f525cc5d632b2d7da5cf9b80a1b758841ba71.tar.bz2
interpreter: move TEST_KW from interpreter.py to type_checking.py
Since it's also used in the rust module, it should be in a common place. Also rename from `TEST_KWARGS` to `TEST_KWS`, which is more in line with the `*_KW` naming scheme used in the type_checking module.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/rust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py
index 42034af..7f56fab 100644
--- a/mesonbuild/modules/rust.py
+++ b/mesonbuild/modules/rust.py
@@ -19,7 +19,7 @@ from . import ExtensionModule, ModuleReturnValue, ModuleInfo
from .. import mlog
from ..build import BothLibraries, BuildTarget, CustomTargetIndex, Executable, ExtractedObjects, GeneratedList, IncludeDirs, CustomTarget, StructuredSources
from ..dependencies import Dependency, ExternalLibrary
-from ..interpreter.interpreter import TEST_KWARGS, OUTPUT_KW
+from ..interpreter.type_checking import TEST_KWS, OUTPUT_KW
from ..interpreterbase import ContainerTypeInfo, InterpreterException, KwargInfo, typed_kwargs, typed_pos_args, noPosargs
from ..mesonlib import File
@@ -63,7 +63,7 @@ class RustModule(ExtensionModule):
@typed_pos_args('rust.test', str, BuildTarget)
@typed_kwargs(
'rust.test',
- *TEST_KWARGS,
+ *TEST_KWS,
KwargInfo('is_parallel', bool, default=False),
KwargInfo(
'dependencies',