From 6963f9473a640cb6736a1642a955b224491e4d35 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha@fedoraproject.org>
Date: Fri, 25 Apr 2014 15:29:16 +0800
Subject: [PATCH] Skip a unit test
This test can only be run in a graphical session anyway.
However, it should automatically skip itself in non-graphical
environments.
This fails though, so let's just explicitly skip the test for now in
Fedora builds.
---
tests/test_prefs.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test_prefs.py b/tests/test_prefs.py
index d1bb438..e568939 100644
--- a/tests/test_prefs.py
+++ b/tests/test_prefs.py
@@ -37,6 +37,7 @@ class PrefsTestCase(unittest.TestCase):
except ET.ParseError as e:
raise AssertionError(e)
+ @unittest.skip("Importing Gtk doesn't raise a RuntimeError on recent Fedora")
def test_ui_file_is_valid_gtk_builder(self):
try:
from gi.repository import Gtk
--
1.9.0