summaryrefslogtreecommitdiff
path: root/tests/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: Support CPython 3.8 on WindowsChristoph Reiter2022-04-091-0/+16
| | | | | | | | | | | | Python 3.8 no longer uses PATH for searching DLLs so we have to add them manually. Note that unlike PATH add_dll_directory() has no defined order, so if there are two same DLLs in PATH we might get a random one. This only makes sure that 'setup.py test' and 'pytest' continue working. If you include pygobject manually you have to call os.add_dll_directory() yourself with the location of the DLLs you ship.
* tests: disable fatal-warnings fatal-criticals on WindowsChristoph Reiter2022-03-271-2/+4
| | | | | | If it triggers it creates a blocking GUI dialog without any helpful output. I can't reproduce the cause on my local machine, just on the CI server, so jsut disable this for now.
* tests: Work around a crash in the new gtk4 a11y stackChristoph Reiter2020-11-151-0/+4
| | | | | | | gtk4 calls get_dbus_object_path() on the default app and glib leaves invalid GApplication instances as default in various places. It's hard to track where a new default instances gets set, so just disable a11y in the test suite for now.
* tests: Remove usage of some deprecated unittest methodsChristoph Reiter2020-11-071-4/+0
|
* tests: remove an old libtool search pathChristoph Reiter2020-11-071-1/+0
|
* tests: Remove metapath hack to import when uninstalledChristoph Reiter2020-11-071-23/+0
| | | | | | | This was required for Python 2 where Python didn't import our built modules in the build dir because there is no __init__.py. In Python 3 this just works. Tested with setup.py/pytest/meson
* Remove all Python 2 Python codeChristoph Reiter2020-04-151-10/+3
|
* tests: set NO_AT_BRIDGEChristoph Reiter2019-11-161-0/+3
| | | | | Otherwise we get "Couldn't register with accessibility bus" warnings which break the tests.
* tests: Make tests run with GTK4Christoph Reiter2018-11-041-1/+5
| | | | | | | This contains the minimum changes needed to get the tests to pass using our docker image which contains a build gtk master from today. This also makes the gtk4 CI job fatal so we don't regress in this area.
* tests: error out if gtk is available but gtk_init() failsChristoph Reiter2018-09-141-0/+9
| | | | | | | In case tests are run on a headless system without xvfb then the gtk import will succeed but it will crash in the first gdk/gtk test. Error out early instead.
* tests: force Adwaita as gtk themeChristoph Reiter2018-08-191-0/+3
| | | | | The Ubuntu 18.10 theme has css errors which make the gtk tests fail.
* tests: don't leak the file object returned by imp.find_module()Christoph Reiter2018-08-151-2/+6
|
* tests: extend the meson cext import hack to _gi_cairo. Fixes #242Christoph Reiter2018-08-151-2/+2
| | | | | | | | It imports the modules directly and puts them in sys.modules under the full name. gi._gi_cairo was missing which made it import the system version (because the gi package is registered as a namespace package). Handle gi._gi_cairo there as well.
* Add meson build definitionsMathieu Duponchelle2018-04-201-2/+0
|
* tests: support builddir != srcdirMathieu Duponchelle2018-04-201-0/+22
|
* tests: fix with stable builds by force enabling PyGIDeprecationWarningChristoph Reiter2018-03-121-0/+5
|
* tests: Make it possible to use pytest directlywip/creiter/pytest-directChristoph Reiter2018-02-121-0/+102
pytest will just import the files passed to it and try to run tests. Since we need to run some setup code convert the tests directory to a Python package and do the initialization in __init__.py. This makes the init code (env vars, typelib search path, dbus) always run when something from the package gets imported. python3 setup.py build_tests # build pygobject and tests py.test-3 tests/test_gi.py # run tests in test_gi.py only