diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-08-04 21:31:29 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-08-04 21:31:29 +0000 |
commit | 5dc644b362a68879a1aa6a2a09eacbb341a85560 (patch) | |
tree | 48d8cf5bdc8182a5904b40f2fc2db44f4c5cfa00 /tests/enum.py | |
parent | 272e668c19e45ad9f00312f89077d75bd74646c1 (diff) | |
download | pygobject-5dc644b362a68879a1aa6a2a09eacbb341a85560.tar.gz pygobject-5dc644b362a68879a1aa6a2a09eacbb341a85560.tar.xz pygobject-5dc644b362a68879a1aa6a2a09eacbb341a85560.zip |
New test.
* tests/enum.py (EnumTest.testOutofBounds): New test.
* gobject/pygflags.c (pyg_flags_from_gtype):
* gobject/pygenum.c (pyg_enum_from_gtype): Don't segfault on
unknown values.
Diffstat (limited to 'tests/enum.py')
-rw-r--r-- | tests/enum.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/enum.py b/tests/enum.py index 98dbd89..5e55a90 100644 --- a/tests/enum.py +++ b/tests/enum.py @@ -72,6 +72,9 @@ class EnumTest(unittest.TestCase): assert isinstance(klass.__enum_values__, dict) assert len(klass.__enum_values__) >= 2 + def testOutofBounds(self): + gtk.icon_size_register('fake', 24, 24) + class FlagsTest(unittest.TestCase): def testFlags(self): assert issubclass(gobject.GFlags, int) |