diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-08-28 21:05:01 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-30 14:00:54 -0400 |
commit | 88a1bed81b7d9ad262d3b511eb20444c609db235 (patch) | |
tree | c2de0d913dd6bc3bef7f5fc7e6d76c193d8e9c0c /unittests/allplatformstests.py | |
parent | 276063a1d2132940ec4a93623f1a5d01266bcd80 (diff) | |
download | meson-88a1bed81b7d9ad262d3b511eb20444c609db235.zip meson-88a1bed81b7d9ad262d3b511eb20444c609db235.tar.gz meson-88a1bed81b7d9ad262d3b511eb20444c609db235.tar.bz2 |
decorators: Make unknown kwarg fatal
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r-- | unittests/allplatformstests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 911613e..ee199f1 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1777,7 +1777,6 @@ class AllPlatformTests(BasePlatformTests): r'sub' + os.path.sep + r'meson.build:4: WARNING: subdir warning', r'meson.build:7: WARNING: Module unstable-simd has no backwards or forwards compatibility and might not exist in future releases.', r"meson.build:11: WARNING: The variable(s) 'MISSING' in the input file 'conf.in' are not present in the given configuration data.", - r'meson.build:1: WARNING: Passed invalid keyword argument "invalid".', ]: self.assertRegex(out, re.escape(expected)) @@ -1827,8 +1826,9 @@ 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, allow_fail=True) - self.assertIn('Function does not take keyword arguments.', out) + with self.assertRaises(subprocess.CalledProcessError) as cm: + self.init(tdir) + self.assertIn('ERROR: compiler.has_header_symbol got unknown keyword arguments "prefixxx"', cm.exception.output) def test_templates(self): ninja = mesonbuild.environment.detect_ninja() |