diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-06-14 09:38:21 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-06-16 00:55:58 -0400 |
commit | 82449843eeb28a2005f8557da87fe0647993cb57 (patch) | |
tree | eef67d7817b1a750a03e2188bae7f4d513a16e5a | |
parent | a320fbee36d8d025d267039b311566346977bdd5 (diff) | |
download | meson-1.87654321.zip meson-1.87654321.tar.gz meson-1.87654321.tar.bz2 |
unittests: fix test_scripts_loaded_modules matching exactly our own modules1.87654321
When meson is installed as editable, setuptools adds
`__editable___meson_1_0_99_finder` to the list. This contains the string
"meson" which isn't really accurate to what we want, which is modules
that are part of the `mesonbuild.*` namespace.
-rw-r--r-- | unittests/allplatformstests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index a57ca0c..6405360 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -4693,7 +4693,7 @@ class AllPlatformTests(BasePlatformTests): cmd = self.meson_command + ['--internal', 'test_loaded_modules', '--unpickle', str(p)] p = subprocess.run(cmd, stdout=subprocess.PIPE) all_modules = json.loads(p.stdout.splitlines()[0]) - meson_modules = [m for m in all_modules if 'meson' in m] + meson_modules = [m for m in all_modules if m.startswith('mesonbuild')] expected_meson_modules = [ 'mesonbuild', 'mesonbuild._pathlib', |