summaryrefslogtreecommitdiff
path: root/tests/unit/base.py
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
committerChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
commit42b1373eff59af2aebb218ded3d2d55cc96dc630 (patch)
treed6e7e435fa41c65fff7a73dd7dc99bb4a12da5c8 /tests/unit/base.py
parent176c8e29d64892072697c5d30513204773545a9b (diff)
parent6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff)
Update upstream source from tag 'upstream/20221106+py3'
Update to upstream version '20221106+py3' with Debian dir b54298e303932808cc08745c5f5133ad7b12628e
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')