Skip to content

Commit

Permalink
just skip the tests that require unittest2 if it's not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 29, 2012
1 parent d684f1f commit 1ed231a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsanalysis.py
Expand Up @@ -27,8 +27,8 @@
try:
from unittest2 import TestCase, expectedFailure
except ImportError:
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
print "You should install unittest2 to run the salt tests"
sys.exit(0)
else:
from unittest import TestCase, expectedFailure

Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgscomposerhtml.py
Expand Up @@ -34,8 +34,8 @@
try:
from unittest2 import TestCase, expectedFailure
except ImportError:
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
print "You should install unittest2 to run the salt tests"
sys.exit(0)
else:
from unittest import TestCase, expectedFailure

Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgscomposition.py
Expand Up @@ -34,8 +34,8 @@
try:
from unittest2 import TestCase, expectedFailure
except ImportError:
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
print "You should install unittest2 to run the salt tests"
sys.exit(0)
else:
from unittest import TestCase, expectedFailure

Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsrectangle.py
Expand Up @@ -13,8 +13,8 @@
try:
from unittest2 import TestCase, expectedFailure
except ImportError:
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
print "You should install unittest2 to run the salt tests"
sys.exit(0)
else:
from unittest import TestCase, expectedFailure

Expand Down

0 comments on commit 1ed231a

Please sign in to comment.