diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-24 14:06:43 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-12-17 14:47:18 -0800 |
| commit | 7ddd0732c27d97fbf36a96c8c3d6bd81cc28ad0f (patch) | |
| tree | e3ee05be516970a298db5b20f54693c2f6416999 /unittests | |
| parent | 5363fc1310d793e738c2bb4868aa24e37a5d880f (diff) | |
| download | meson-7ddd0732c27d97fbf36a96c8c3d6bd81cc28ad0f.tar.gz | |
dependencies: stop passing "language" as a keyword argument
It's allowed in the `DependencyKeywordArguments` TypeDict already, so we
now have two sources of truth. Additionally, it's often populated by
reading from that dict, so we're just doing useless work.
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/internaltests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 74b36a83e..4d34a335d 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1038,14 +1038,14 @@ class InternalTests(unittest.TestCase): 'test_dep', methods=[b.DependencyMethods.PKGCONFIG, b.DependencyMethods.CMAKE] ) - actual = [m() for m in f(env, MachineChoice.HOST, {'required': False})] + actual = [m() for m in f(env, {'required': False, 'native': MachineChoice.HOST})] self.assertListEqual([m.type_name for m in actual], ['pkgconfig', 'cmake']) f = F.DependencyFactory( 'test_dep', methods=[b.DependencyMethods.CMAKE, b.DependencyMethods.PKGCONFIG] ) - actual = [m() for m in f(env, MachineChoice.HOST, {'required': False})] + actual = [m() for m in f(env, {'required': False, 'native': MachineChoice.HOST})] self.assertListEqual([m.type_name for m in actual], ['cmake', 'pkgconfig']) def test_validate_json(self) -> None: |
