aboutsummaryrefslogtreecommitdiff
path: root/unittests/allplatformstests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-26 14:16:31 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-16 16:21:51 -0700
commitb30dddd4e5b4ae6e5e1e812085a00a47e3edfcf1 (patch)
tree0bfb4db2a7b544de3153b70a2f0d972c62d1b0f6 /unittests/allplatformstests.py
parentbcb5400e344805cacb3d1dc8b765b0d07193e7a4 (diff)
downloadmeson-b30dddd4e5b4ae6e5e1e812085a00a47e3edfcf1.zip
meson-b30dddd4e5b4ae6e5e1e812085a00a47e3edfcf1.tar.gz
meson-b30dddd4e5b4ae6e5e1e812085a00a47e3edfcf1.tar.bz2
interpreter/compiler: Add type checking for the Compiler object
This adds a full set of `typed_pos_args` and `typed_kwarg` decorations, as well as fixing all of the typing errors reported by mypy.
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r--unittests/allplatformstests.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index b296341..a97ba63 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -1826,13 +1826,8 @@ class AllPlatformTests(BasePlatformTests):
def test_permitted_method_kwargs(self):
tdir = os.path.join(self.unit_test_dir, '25 non-permitted kwargs')
- out = self.init(tdir)
- for expected in [
- r'WARNING: Passed invalid keyword argument "prefixxx".',
- r'WARNING: Passed invalid keyword argument "argsxx".',
- r'WARNING: Passed invalid keyword argument "invalidxx".',
- ]:
- self.assertRegex(out, re.escape(expected))
+ out = self.init(tdir, allow_fail=True)
+ self.assertIn('Function does not take keyword arguments.', out)
def test_templates(self):
ninja = mesonbuild.environment.detect_ninja()