diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-28 18:19:20 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-28 18:19:20 +0000 |
commit | 967b449e0c608baa4760292eaa832d2953c29e3f (patch) | |
tree | 5c5df733bcb5a4631fa03b34332c5334b8c5c036 | |
parent | 24bead25a45851dea013d33230a052a0071dfb27 (diff) | |
download | pygobject-967b449e0c608baa4760292eaa832d2953c29e3f.tar.gz pygobject-967b449e0c608baa4760292eaa832d2953c29e3f.tar.xz pygobject-967b449e0c608baa4760292eaa832d2953c29e3f.zip |
workaround gtk bug #317455
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/test_textview.py | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0a9ee84..e914250 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,6 +31,7 @@ tests = \ test_subtype.py \ test_gdkevent.py \ test_unknown.py \ + test_textview.py \ test_source.py # This is a hack to make sure a shared library is built diff --git a/tests/test_textview.py b/tests/test_textview.py new file mode 100644 index 0000000..5022fda --- /dev/null +++ b/tests/test_textview.py @@ -0,0 +1,14 @@ +import sys +import unittest + +from common import gtk + +class TextViewTest(unittest.TestCase): + def test_default_attributes(self): + textview = gtk.TextView() + attrs = textview.get_default_attributes() + textview.destroy() + self.assertEqual(attrs.font_scale, 1.0) + +if __name__ == '__main__': + unittest.main() |