summaryrefslogtreecommitdiff
path: root/unittests/platformagnostictests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-09-30 11:26:24 -0700
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-10-04 17:18:54 +0300
commita48deaf9df49c999eeeb0820021acde942176860 (patch)
tree16ce4ad59f214a0beace70078a104ed5921968b2 /unittests/platformagnostictests.py
parent2cea370a7bfb47343d8fd5f8c6453a21c9aac7a0 (diff)
downloadmeson-a48deaf9df49c999eeeb0820021acde942176860.tar.gz
utils: merge per-platform utils into `platform.py`
This allows us to simplify running mypy, as we can just mypy the entire utils module regardless of the platform we're using. As an added bonus, this means we open one less module.
Diffstat (limited to 'unittests/platformagnostictests.py')
-rw-r--r--unittests/platformagnostictests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py
index ebd5317a4..6a1ea38be 100644
--- a/unittests/platformagnostictests.py
+++ b/unittests/platformagnostictests.py
@@ -296,10 +296,10 @@ class PlatformAgnosticTests(BasePlatformTests):
data = json.load(f)['meson']
with open(os.path.join(testdir, 'expected_mods.json'), encoding='utf-8') as f:
- expected = json.load(f)['meson']['modules']
+ expected = json.load(f)['meson']
- self.assertEqual(data['modules'], expected)
- self.assertEqual(data['count'], 70)
+ self.assertEqual(data['modules'], expected['modules'])
+ self.assertEqual(data['count'], expected['count'])
def test_meson_package_cache_dir(self):
# Copy testdir into temporary directory to not pollute meson source tree.