summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-09-02 19:59:44 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-09-02 19:59:44 +0000
commitc005ba89c4688c40e691db7b70a29eb673a36e47 (patch)
tree082e2be3e452305b3aec76f80e9bbfe7ba293fe4 /tests
parentc9bc5e1dbfb5f9e450eb9a09bd4571073bb85a84 (diff)
downloadpygtk-c005ba89c4688c40e691db7b70a29eb673a36e47.tar.gz
Bug 472908 – Make pango.Context non-instantiable
svn path=/trunk/; revision=2901
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pango.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_pango.py b/tests/test_pango.py
index c7459c2a..2e824107 100644
--- a/tests/test_pango.py
+++ b/tests/test_pango.py
@@ -37,3 +37,8 @@ class TestFontDescription(unittest.TestCase):
fontdescr3 = pango.FontDescription('monospace 12')
self.assertEqual(fontdescr, fontdescr2)
self.assertNotEqual(fontdescr, fontdescr3)
+
+
+class Tests(unittest.TestCase):
+ def testPangoContextConstructor(self):
+ self.assertRaises(TypeError, pango.Context)