summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use a more obvious dummy string when testing type-checkingDavid Malcolm2010-04-201-19/+19
| | | | | | | | Various tests that ensured type-checking was rejecting strings were using string literals that resembled valid values. This was confusing, so instead we now use "foo" throughout to make it clear that we're dealing with string values.
* Generalize CONSTANT_UTF8 to be a UTF-8 encoded bytes in Python 2 and a ↵David Malcolm2010-04-201-1/+23
| | | | unicode string in Python 3
* return __long__ from the Number classJohn (J5) Palmieri2010-04-161-0/+3
|
* Use GIMarshallingTests (old TestGI) in gobject-introspectionTomeu Vizoso2010-04-134-4008/+416
|
* Fix and complete overrides testsSimon van der Linden2010-02-031-1/+7
| | | | | | Those tests were missing in the last commit https://bugzilla.gnome.org/show_bug.cgi?id=602830
* Remove support for pointers to basic types as input-only argument and return ↵Simon van der Linden2010-01-223-890/+0
| | | | | | | | | value There is no reason for an API to use such things, and g_function_info_invoke broke such features. https://bugzilla.gnome.org/show_bug.cgi?id=607759
* Restore the overrides supportSimon van der Linden2010-01-223-0/+190
| | | | | | | | | | | | | Add a ModuleProxy in front of the DynamicModule when an overrides module is present. There is no need for an overrides module to be a class; it can just be a module. Add an override decorator to override the wrapper of a registered type. Adapt Gdk and Gtk accordingly. Add tests. https://bugzilla.gnome.org/show_bug.cgi?id=602830
* Initialize struct fields to 0 when allocatingSimon van der Linden2010-01-081-0/+5
|
* Don't set a default constructor for structures.Simon van der Linden2010-01-083-51/+10
| | | | | | | | | | Update tests accordingly. The reason for this change is that setting __new__ in the metaclass doesn't let one overrides it afterwards, in a subclass (in my experience, at least, even though it seems weird). https://bugzilla.gnome.org/show_bug.cgi?id=603536
* sys.path must be modified after pygtk is importedSimon van der Linden2010-01-032-1/+3
| | | | | Otherwise, sys.path is overridden by pygtk and gi.repository is loaded from the system's default site-package directory.
* The array field 'length' starts to count from the C arg list, so need to ↵Tomeu Vizoso2009-12-223-0/+79
| | | | | | decrement when it's a method https://bugzilla.gnome.org/show_bug.cgi?id=602640
* Use the limit constants from glib and interpret G_MAXUINT32 as ↵Tomeu Vizoso2009-11-301-9/+9
| | | | | | PyLong_FromLongLong https://bugzilla.gnome.org/show_bug.cgi?id=602384
* Set a default constructor for boxed structs that don't have oneTomeu Vizoso2009-11-303-65/+72
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=602735
* Revert "Use the limit constants from glib and interpret G_MAXUINT32 as ↵Tomeu Vizoso2009-11-301-9/+9
| | | | | | PyLong_FromLongLong" This reverts commit 05a2ed55f3e5d2620de8b3b6b0d99e928ef3b041.
* Use the limit constants from glib and interpret G_MAXUINT32 as ↵Tomeu Vizoso2009-11-281-9/+9
| | | | | | PyLong_FromLongLong https://bugzilla.gnome.org/show_bug.cgi?id=602384
* A few tests about interfacesTomeu Vizoso2009-11-283-0/+60
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=601181
* Fix members initialization in metaclassesSimon van der Linden2009-11-271-0/+19
| | | | | | | | | | | | In metaclasses, the test for the name of the class was wrong, since it prevented one to create a subclass with the same name (especially annoying for overrides). Now, if a GType is available from the info, the fact that it doesn't have any wrapper yet means that the metaclass is creating the base class, which will be registerd just after its creation. This is true for objects, and for structures registered as boxed or pointer too. This patch includes a test for basic subclassing in Python. It notably tests that methods don't get overridden by the metaclass.
* Structs in arrays are not marshalled correctlyTomeu Vizoso2009-11-273-3/+35
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=602709
* Accept 0 as a valid value for flag and enum argumentsTomeu Vizoso2009-11-243-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=602638
* Add support for Any argumentsTomeu Vizoso2009-11-223-0/+15
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=601253
* Import pygtk properly to avoid failure on some setupsSimon van der Linden2009-11-141-0/+3
|
* Initial importSimon van der Linden2009-11-085-0/+5526