Skip to content

Commit 126b897

Browse files
committed
TestCase and expectedFailure must both come from the same unittest
1 parent 965342d commit 126b897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/python/test_qgscomposition.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
print "You need to install unittest2 to run the salt tests"
4040
sys.exit(1)
4141
else:
42-
from unittest import expectedFailure
42+
from unittest import TestCase, expectedFailure
4343

4444
QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()
4545
TEST_DATA_DIR = unitTestDataPath()
4646

4747

48-
class TestQgsComposition(unittest.TestCase):
48+
class TestQgsComposition(TestCase):
4949

5050
def setUp(self):
5151
"""Run before each test."""

0 commit comments

Comments
 (0)