summaryrefslogtreecommitdiff
path: root/unittests/pythontests.py
AgeCommit message (Collapse)Author
2025-02-04ci: Update appleclang job to test Xcode-provided PythonL. E. Segovia
2025-02-04unittests: Unbreak Python bytecompile tests with Xcode PythonL. E. Segovia
Apple sets sys.pycache_prefix to an user-wide cache folder, so it needs to be prepended to the root for the glob to work correctly.
2024-06-11unittests: Add Python unittest for limited APIAndrew McNulty
This new unittest runs the existing Python limited API test case, and checks that the resulting library was linked to the correct library.
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-07-02remove CI workaround for clang+msys2Eli Schwartz
Reverts part of commit 4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e. msys2 is now fixed, so clang works well with the python headers.
2023-06-07unittests: fix incorrect calculation of bytecompile outputsEli Schwartz
If py2 is not found *and* the compiler is MSVC, we didn't take into account that py2 is not found. This also meant that we didn't take into account the expected count when it *is* found, because the python module has a better finder than just "is the binary on PATH".
2023-05-02tests: add workarounds for python brokenness on WindowsEli Schwartz
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.
2023-05-02tests: add a python test for bytecode compilationEli Schwartz
Some tweaks are added to the test case so that it supports python2 as well.
2022-04-13Add regression test for Python dist.Jussi Pakkanen
2022-03-16unittests: convert python tests to project testsEli Schwartz
Perhaps when this test case was originally created, project tests could not use a matrix of options? This is certainly possible today, so don't write special unittest handling for this instead. This adds proper visibility into what gets run and what doesn't. Now we know which python executables got tested and which got skipped.
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-26Split run_unittests.py fileXavier Claessens