summaryrefslogtreecommitdiff
path: root/tests/unit/base.py
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:39 +0100
committerChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:39 +0100
commit6f19923a918f7fb63a444b0c99950fdbe9d2f74c (patch)
tree326c13aee4c097b57d784572fa0d322146c832a2 /tests/unit/base.py
parent14581c70e561f9f350a4d5ad86924a5d466028d4 (diff)
New upstream version 20221106+py3upstream/20221106+py3
Diffstat (limited to 'tests/unit/base.py')
-rw-r--r--tests/unit/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/base.py b/tests/unit/base.py
index 1e112ce..8b90a44 100644
--- a/tests/unit/base.py
+++ b/tests/unit/base.py
@@ -48,3 +48,12 @@ def mock_gtk():
def unmock_gtk():
for module in pygtk_mocks:
del sys.modules[module]
+
+
+class BaseGTKTest(BaseTest):
+ def setUp(self):
+ super(BaseGTKTest, self).setUp()
+ try:
+ import gtk
+ except ImportError:
+ self.skipTest('pygtk not available')