diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 20:40:13 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 22:09:25 -0400 |
| commit | 4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e (patch) | |
| tree | 0fe95082a27a63c51eae980518f6c096d9780620 /unittests/baseplatformtests.py | |
| parent | 877d5ea8e02c13bb606969d33d0491cfd4e08275 (diff) | |
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.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 9ab808394..b3572df76 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}' |
