| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
Stop mixing camel case and underline naming, use the latter consistently
in all tests.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=672627
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=642048
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
This is make threading usable for both users of the threading
module and users that requires interaction with threads from
other extension modules.
|
|
|