summaryrefslogtreecommitdiff
path: root/tests/test_thread.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove all Python 2 Python codeChristoph Reiter2020-04-151-2/+0
|
* tests: support builddir != srcdirMathieu Duponchelle2018-04-201-1/+1
|
* tests: Make it possible to use pytest directlywip/creiter/pytest-directChristoph Reiter2018-02-121-1/+4
| | | | | | | | | | | 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
* tests: Reduce usage of timeout_add() and sleep()Christoph Reiter2017-03-271-1/+5
| | | | | | | | | | * Instead of waiting for a fixed time, use a timeout and stop the main loop right after the test has succeeded. * Replace time.sleep to sync processes with os.pipe communication * Chain idle sources instead of using multiple timeout sources * Replace sleeps with unbufferd communication https://bugzilla.gnome.org/show_bug.cgi?id=698548
* tests: consitent naming styleMartin Pitt2012-10-241-1/+1
| | | | | Stop mixing camel case and underline naming, use the latter consistently in all tests.
* PEP8: run via --fix from craigds forkJohan Dahlin2012-03-221-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672627
* fix tests to use the new GLib moduleJohn (J5) Palmieri2011-08-111-6/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=642048
* refactor tests to only use PyGObject 3 syntaxJohn (J5) Palmieri2011-08-111-2/+3
| | | | | | | | | | | * for PyGObject 3 we want to discourage the use of legacy interfaces * Using interfaces like from gi.repository import GObject makes sure that the internal _gobject module is loaded and not PyGObject 2's gobject module which would cause the application to not work correctly https://bugzilla.gnome.org/show_bug.cgi?id=642048
* Clean and improve the test infrastructureSimon van der Linden2010-07-291-1/+4
| | | | | | | | | To run select tests, use for instance: % make check TEST_NAMES='test_everything test_gi.TestConstant' It works with check.gdb and check.valgrind too. https://bugzilla.gnome.org/show_bug.cgi?id=625488
* Run pyflakes on the testsuite, remove unused imports and reorganizeJohan Dahlin2008-07-261-4/+5
| | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * tests/common.py: * tests/test_conversion.py: * tests/test_enum.py: * tests/test_interface.py: * tests/test_option.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_subtype.py: * tests/test_thread.py: * tests/test_unknown.py: Run pyflakes on the testsuite, remove unused imports and reorganize others. svn path=/trunk/; revision=859
* Move over glib constants to gobjectJohan Dahlin2008-07-261-4/+5
| | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_register_constants), (init_glib): * gobject/__init__.py: * gobject/gobjectmodule.c (init_gobject): Move over glib constants to gobject * tests/test_gio.py: * tests/test_mainloop.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_thread.py: Update tests to refer to glib when appropriate svn path=/trunk/; revision=858
* reindentJohan Dahlin2006-04-111-1/+1
|
* Split out PyGObject from PyGTK.Johan Dahlin2006-01-091-3/+4
|
* Make testsuite work and do things the way they were supposed to be doneJohan Dahlin2005-01-101-5/+0
| | | | | | | | * tests/Makefile.am: * tests/common.py: * tests/runtests.py: * tests/test_thread.py: Make testsuite work and do things the way they were supposed to be done from the beginning.
* Add pygtk_postinstall.py Updated Deprecate gtk.idle_add and friends. MergeJohan Dahlin2005-01-081-2/+2
| | | | | | | | | * Makefile.am: Add pygtk_postinstall.py * docs/random/missing-symbols: Updated * gtk/__init__.py: Deprecate gtk.idle_add and friends. * gtk/gtk.defs: Merge in 2.6 api, for GtkLabel functions, thanks to Gian Mario Tagliaretti, fixes bug #163296 * tests/test_thread.py: Don't use gtk.idle_add
* Apply slighly modified fix from bug 149845PYGTK_2_3_97Johan Dahlin2004-09-281-0/+4
| | | | | | This is make threading usable for both users of the threading module and users that requires interaction with threads from other extension modules.
* Forgot to commit this yesterdayJohan Dahlin2004-09-281-0/+24