diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-02-28 09:31:00 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-03-03 11:26:23 -0800 |
| commit | 2ed0d5ed3bda03283fac5780794f43967e691749 (patch) | |
| tree | 813c5d4c6c9228396be4116c1a5a46bfc7f81100 /unittests | |
| parent | d16d5397e57919b50513bab13519fdbba7815c63 (diff) | |
| download | meson-2ed0d5ed3bda03283fac5780794f43967e691749.tar.gz | |
options: use an OptionKey for `get_default_for_b_option`
We have the OptionKey in the one caller that exists already, and this
allows us to do a hash lookup instead of a linear walk.
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/optiontests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/optiontests.py b/unittests/optiontests.py index 28abca110..971c247e5 100644 --- a/unittests/optiontests.py +++ b/unittests/optiontests.py @@ -207,5 +207,5 @@ class OptionTests(unittest.TestCase): def test_b_default(self): optstore = OptionStore(False) - value = optstore.get_default_for_b_option('b_vscrt') + value = optstore.get_default_for_b_option(OptionKey('b_vscrt')) self.assertEqual(value, 'from_buildtype') |
