aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-04-09 09:50:13 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-04-09 12:27:39 -0700
commitd617dc6869bcd5afcd784ff39cc5b6597b1912a2 (patch)
tree852289f5450f09b62fe362729d45bec5969e2444 /unittests
parentef2b164f1f6b6597b48ea34ef897f6a303499620 (diff)
downloadmeson-d617dc6869bcd5afcd784ff39cc5b6597b1912a2.zip
meson-d617dc6869bcd5afcd784ff39cc5b6597b1912a2.tar.gz
meson-d617dc6869bcd5afcd784ff39cc5b6597b1912a2.tar.bz2
modules: rename qt.py -> _qt.py
Since it's an implementation detail, and shouldn't be exposed. This also helps give better error messages when a user writes `import('qt')`, since otherwise you get an error about `qt doesn't have an initialize method`, and now you get `qt module doesn't exist`.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/datatests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/datatests.py b/unittests/datatests.py
index 4f9d520..b14bbac 100644
--- a/unittests/datatests.py
+++ b/unittests/datatests.py
@@ -201,7 +201,7 @@ class DataTests(unittest.TestCase):
html = f.read().lower()
self.assertIsNotNone(html)
for f in Path('mesonbuild/modules').glob('*.py'):
- if f.name in {'modtest.py', 'qt.py', '__init__.py'}:
+ if f.name.startswith('_') or f.name == 'modtest.py':
continue
name = f'{f.stem}-module.html'
name = name.replace('unstable_', '')