Skip to content

Commit

Permalink
TestCase and expectedFailure must both come from the same unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Sep 26, 2012
1 parent 965342d commit 126b897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgscomposition.py
Expand Up @@ -39,13 +39,13 @@
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
else:
from unittest import expectedFailure
from unittest import TestCase, expectedFailure

QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()
TEST_DATA_DIR = unitTestDataPath()


class TestQgsComposition(unittest.TestCase):
class TestQgsComposition(TestCase):

def setUp(self):
"""Run before each test."""
Expand Down

0 comments on commit 126b897

Please sign in to comment.