summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-12-06 12:51:48 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-10-20 15:15:53 -0700
commitb7be98f15324d8d51ab82ff35d926b7ece06c34a (patch)
tree1317e5527fae55dfae69f884dfd4c4a648adca96 /unittests
parentf22a129748a52b7923a5cdc6cba2890f52322a8c (diff)
downloadmeson-b7be98f15324d8d51ab82ff35d926b7ece06c34a.tar.gz
interpreter: port dependency method to typed_kwargs
This allows us a bunch of nice things: 1. We can use the DependencyMethods enum everywhere 2. The deprecated methods can be checked in the Interpreter, so we can now emit deprecation warnings for stuff that was deperecated in 0.44! 3. We can share this more strongly typed method everywhere
Diffstat (limited to 'unittests')
-rw-r--r--unittests/failuretests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/failuretests.py b/unittests/failuretests.py
index 26f72e4af..360b0e774 100644
--- a/unittests/failuretests.py
+++ b/unittests/failuretests.py
@@ -147,11 +147,11 @@ class FailureTests(BasePlatformTests):
def test_dependency(self):
if subprocess.call(['pkg-config', '--exists', 'zlib']) != 0:
raise unittest.SkipTest('zlib not found with pkg-config')
- a = (("dependency('zlib', method : 'fail')", "'fail' is invalid"),
+ a = (("dependency('zlib', method : 'fail')", 'dependency keyword argument "method" must be one of auto, builtin, cmake, config-tool, cups-config, dub, extraframework, libwmf-config, pcap-config, pkg-config, qmake, sdlconfig, sysconfig, system, not fail'),
("dependency('zlib', static : '1')", "[Ss]tatic.*boolean"),
("dependency('zlib', version : 1)", "Item must be a list or one of <class 'str'>"),
("dependency('zlib', required : 1)", "[Rr]equired.*boolean"),
- ("dependency('zlib', method : 1)", "[Mm]ethod.*string"),
+ ("dependency('zlib', method : 1)", "dependency keyword argument 'method' was of type int but should have been str"),
("dependency('zlibfail')", self.dnf),)
for contents, match in a:
self.assertMesonRaises(contents, match)