diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2007-09-02 19:59:44 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2007-09-02 19:59:44 +0000 |
commit | c005ba89c4688c40e691db7b70a29eb673a36e47 (patch) | |
tree | 082e2be3e452305b3aec76f80e9bbfe7ba293fe4 /tests | |
parent | c9bc5e1dbfb5f9e450eb9a09bd4571073bb85a84 (diff) | |
download | pygtk-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.py | 5 |
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) |