From 943e9368f7198b6c2b069ad024ee798037f3c35e Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 25 Nov 2019 14:29:05 -0500 Subject: Simplify dependency() fallback Now that subprojects can override the dependency name, there is no need to provide a variable name for the fallback any more. --- run_unittests.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index ee5a713..8479e34 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3981,10 +3981,16 @@ recommended as it is not supported on some platforms''') 'descriptive_name': 'sub', 'name': 'sub', 'version': '1.0' - } + }, + { + 'descriptive_name': 'sub-novar', + 'name': 'sub_novar', + 'version': '1.0', + }, ] } - self.assertDictEqual(res, expected) + res['subprojects'] = sorted(res['subprojects'], key=lambda i: i['name']) + self.assertDictEqual(expected, res) def test_introspection_target_subproject(self): testdir = os.path.join(self.common_test_dir, '45 subproject') -- cgit v1.1