commit c65efcb0bb4a73c9fb1ffa10225795adc489a081 Author: Christoph Reiter Date: Sat Feb 10 13:22:17 2018 +0100 release NEWS | 11 +++++++++++ docs/conf.py | 1 + 2 files changed, 12 insertions(+) commit 11de6f55f48447325325ec2f334af5576d12e2ed Author: Christoph Reiter Date: Sat Feb 10 11:37:55 2018 +0100 tests: switch to pytest as the default test runner. See #153 The TEST_NAMES env var gets translated to work with the pytest syntax (foo.py::class::method). Rename one class which triggers a pytest warning because it starts with "Test" but isn't one. Remove erroring out on Python warnings as pytest triggers some deprecation warnings by default. .gitignore | 2 ++ .gitlab-ci/test-docker.sh | 2 +- docs/devguide/building_testing.rst | 9 +++++++++ docs/devguide/dev_environ.rst | 6 ++++-- tests/Makefile.am | 2 +- tests/runtests.py | 16 +++++++++------- tests/test_generictreemodel.py | 16 ++++++++-------- 7 files changed, 34 insertions(+), 19 deletions(-) commit 9a9bb732752e7bec42a1c13f080b37536876e3e0 Author: Christoph Reiter Date: Sat Feb 10 11:16:49 2018 +0100 tests: set DBUS_SESSION_BUS_ADDRESS to some invalid value to disable dbus While keepig it empty works on Linux, on Windows setting an invalid value is needed to disable dbus. tests/runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 64b02e3017b50a17a087ee821522a1cb8e066f27 Author: Christoph Reiter Date: Fri Feb 9 17:06:52 2018 +0100 tests: remove locale test for uppercasing C names Someone on IRC had problems running the test suite, and that's not the first time, so remove it for now (added in 63c7f17c2248) The locale generation adds extra dependencies and only works on Linux, and while the test does something useful it complicates things too much. We need to find a better way (in Python if possible) to test for locale dependend upper()/lower(). MANIFEST.in | 2 +- tests/Makefile.am | 1 - tests/te_ST@nouppera | 50 -------------------------------------------------- tests/test_gi.py | 31 ------------------------------- 4 files changed, 1 insertion(+), 83 deletions(-) commit d9516e8dc32db9494139a733ae3a535d2f89c6e1 Author: Christoph Reiter Date: Fri Feb 9 14:12:20 2018 +0100 tests: disable dbus tests on Windows/macOS dbus-daemon is available in MSYS2 unlike dbus-run-session but the tests fail. Disable dbus tests on Windows/macOS to restore the old behaviour for now. tests/runtests.py | 3 +++ 1 file changed, 3 insertions(+) commit 1e28b03b1562c030a956ed82337eaacfa38c304e Author: Christoph Reiter Date: Thu Feb 8 17:10:21 2018 +0100 tests: move dbus session bus handling into runtests.py This allows us to remove code duplication in autotools/distutils. This also fixes the noisy dbus output during tests because dbus-run-session forwarded dbus logging output to stderr. .gitlab-ci/Dockerfile | 1 - .gitlab-ci/run-docker.sh | 0 setup.py | 14 ++------------ tests/Makefile.am | 10 +++------- tests/runtests.py | 27 +++++++++++++++++++++++++-- 5 files changed, 30 insertions(+), 22 deletions(-) commit 095388a7c83dbffbe042f842789285f63996fc11 Author: Christoph Reiter Date: Thu Feb 8 15:38:24 2018 +0100 gitlab-ci: use pyenv in docker instead of the deadsnakes PPA deadsnakes only provides packages for Ubuntu LTS versions and doesn't include versions present in that Ubuntu version. With Ubuntu zesty this happened to work, but now that that's EOL we have to switch to artful and no longer have a Python 3.5 available. Instead switch to using pyenv in docker and compiler our own Python versions. This should make it easier to swtich distros in the future. Also adds a run-docker.sh script which builds the image and runs it with the git repo mounted. This should make local testing easier in the future. .gitlab-ci.yml | 12 +++++++--- .gitlab-ci/Dockerfile | 60 ++++++++++++++++++++++++++++------------------- .gitlab-ci/run-docker.sh | 7 ++++++ .gitlab-ci/test-docker.sh | 11 +++++---- 4 files changed, 58 insertions(+), 32 deletions(-) commit 7bc20fe2d1225bebb2f4ec1faabf6a70e4e5a4e7 Author: Mikhail Fludkov Date: Thu Feb 8 12:49:01 2018 +0100 tests: Make tests run without Gtk/Gdk installed Python evaluates the code inside @unittest.skipIf decorator during import time. Because Gtk is not installed it crashes while evaluating 'Gtk._version' where Gtk=None. tests/test_ossig.py | 10 ++++++--- tests/test_overrides_gdk.py | 17 +++++++-------- tests/test_overrides_gtk.py | 50 +++++++++++++++++++++++---------------------- 3 files changed, 42 insertions(+), 35 deletions(-) commit d371fd77d33c2987cc450bd68ce4ee4835e09bd8 Author: Christoph Reiter Date: Thu Feb 8 09:02:37 2018 +0100 Revert "to-py-struct: don't copy the boxed if we are the sole owner of the wrapper" This reverts commit a4a68b3c7a4bb64c71e1bdbe52ede109b6bcd0bb. This was wrong. In the context of a boxed return value we also have only one ref but it doesn't get freed after. We could decide this based on PYGI_CALLING_CONTEXT_IS_FROM_C from the callable cache, but let's leave that for now. gi/pygi-struct-marshal.c | 11 ++--------- tests/test_everything.py | 2 -- 2 files changed, 2 insertions(+), 11 deletions(-) commit 024ac583538976330b429b9b203d412fec0426e3 Author: Mikhail Fludkov Date: Tue Feb 6 15:24:17 2018 +0100 tests: test_boxed_c_wrapper failing tests Introduced here 1ec8d58 setup.py | 2 ++ tests/Makefile.am | 8 +++++--- tests/regressextra.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/regressextra.h | 17 ++++++++++++++++ tests/test_everything.py | 31 +++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+), 3 deletions(-) commit ee79fef18748ad660d3a0471ed9a18ea11410849 Author: Christoph Reiter Date: Wed Feb 7 11:55:54 2018 +0100 version bump configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)