Skip to content
Permalink
Browse files

just skip the tests that require unittest2 if it's not available

  • Loading branch information
jef-n committed Sep 29, 2012
1 parent d684f1f commit 1ed231a26d5b3aef48e16aa1e327605ee80efd8b
@@ -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

@@ -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

@@ -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

@@ -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

0 comments on commit 1ed231a

Please sign in to comment.
You can’t perform that action at this time.