aboutsummaryrefslogtreecommitdiff
path: root/unittests/baseplatformtests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-05-02 20:40:13 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-05-02 22:09:25 -0400
commit4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e (patch)
tree0fe95082a27a63c51eae980518f6c096d9780620 /unittests/baseplatformtests.py
parent877d5ea8e02c13bb606969d33d0491cfd4e08275 (diff)
downloadmeson-4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e.zip
meson-4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e.tar.gz
meson-4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e.tar.bz2
tests: add workarounds for python brokenness on Windows
msys2 is broken only on clang, due to -Werror issues in the python headers as patched by msys2. MSVC is simply weird... due to the use of an unversioned platlib/purelib directory, the python2 and python3 components overlap.
Diffstat (limited to 'unittests/baseplatformtests.py')
-rw-r--r--unittests/baseplatformtests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py
index 9ab8083..b3572df 100644
--- a/unittests/baseplatformtests.py
+++ b/unittests/baseplatformtests.py
@@ -484,3 +484,6 @@ class BasePlatformTests(TestCase):
def assertPathDoesNotExist(self, path):
m = f'Path {path!r} should not exist'
self.assertFalse(os.path.exists(path), msg=m)
+
+ def assertLength(self, val, length):
+ assert len(val) == length, f'{val} is not length {length}'