Skip to content

Commit

Permalink
Fix test skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 14, 2019
1 parent 156784f commit 28f132e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/test_imageqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def skip_if_qt_is_not_installed(test_case):

class PillowQtTestCase(object):

def setUp(self):
skip_if_qt_is_not_installed(self)
@classmethod
def setUpClass(cls):
if not ImageQt.qt_is_installed:
raise unittest.SkipTest('Qt bindings are not installed')

def tearDown(self):
pass
Expand Down

0 comments on commit 28f132e

Please sign in to comment.