summaryrefslogtreecommitdiff
path: root/tests/test_everything.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:47:05 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:47:08 +0900
commite49df4afb1654f59a39d02e6ec0ecdf537ce9351 (patch)
tree000154f278704965f45c9ae9a7ed8475e4b10ca1 /tests/test_everything.py
parent3a2fe8f548bb171295a989bf143f8c7a75715e6e (diff)
downloadpygobject2-e49df4afb1654f59a39d02e6ec0ecdf537ce9351.tar.gz
pygobject2-e49df4afb1654f59a39d02e6ec0ecdf537ce9351.tar.bz2
pygobject2-e49df4afb1654f59a39d02e6ec0ecdf537ce9351.zip
Imported Upstream version 3.3.5
Change-Id: Ib5961d5ca7c3b6c41650123a60433cb2ca0ebd58 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_everything.py')
-rw-r--r--tests/test_everything.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 728d58a..3cf98fa 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -15,12 +15,18 @@ try:
except ImportError:
has_cairo = False
+#import gi
from gi.repository import GObject
from gi.repository import GLib
from gi.repository import Gio
-from gi.repository import Gtk
from gi.repository import Regress as Everything
+try:
+ from gi.repository import Gtk
+ Gtk # pyflakes
+except:
+ Gtk = None
+
if sys.version_info < (3, 0):
UNICHAR = "\xe2\x99\xa5"
PY2_UNICODE_UNICHAR = unicode(UNICHAR, 'UTF-8')
@@ -676,6 +682,7 @@ class TestSignals(unittest.TestCase):
class TestPango(unittest.TestCase):
+ @unittest.skipUnless(Gtk, 'Gtk not available')
def test_cairo_font_options(self):
screen = Gtk.Window().get_screen()
font_opts = screen.get_font_options()