summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/meson.build
AgeCommit message (Collapse)Author
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.
2023-05-02python module: add an automatic byte-compilation stepEli Schwartz
For all source `*.py` files installed via either py.install_sources() or an `install_dir: py.get_install_dir()`, produce `*.pyc` files at install time. Controllable via a module option.
2023-03-28test that python modules nominally compile without warningsEli Schwartz
Because we poke around with the dependency, so we might introduce some, and have at least once.
2022-11-14tests: fix edge case where non-default python is used, by skipping itEli Schwartz
In a couple of python module tests, we try to test things that rely on the default python being the same one we look up in the python module. This is unsolvable for the deprecated python3 module, as it actually uses the in-process version of python for everything. For the python module, we could actually look up the default system python instead of the one we are running with, but then we wouldn't be testing the functionality of that alternative python... and also the install manifest tests would see files installed for the wrong version of python, and report a combination of missing+extra files... Solve both tests by just skipping the parts we cannot check.
2021-08-18tests: python module should install files correctlyEli Schwartz
- default to python site-packages - subdir to site-packages/subdir - arbitrary install_dir
2020-07-12simplify/correct test logicMichael Hirsch
before this, tests were being skipped on Ubuntu 20.04 with Anaconda Python Now, all 5 tests success
2020-07-12some python test cases don't care about backend, so run them in any caseMichael Hirsch
2018-12-12tests: Add tests for the python moduleDylan Baker
This doesn't touch everything as it's just based on the python3 module tests, ported to the python module. It's still better than the one very basic test in the unit test module.