Skip to content

Commit 82ec418

Browse files
committedMay 4, 2018
revive python tests on bionic
1 parent d6af93e commit 82ec418

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎python/testing/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232

3333
from qgis.PyQt.QtCore import QVariant
3434
from qgis.core import QgsApplication, QgsFeatureRequest, QgsVectorLayer
35-
from nose2.compat import unittest
35+
36+
try:
37+
from nose2.compat import unittest
38+
except ImportError:
39+
import unittest
3640

3741
# Get a backup, we will patch this one later
3842
_TestCase = unittest.TestCase

0 commit comments

Comments
 (0)
Please sign in to comment.