Created
March 13, 2012 11:40
-
-
Save lsbardel/2028294 to your computer and use it in GitHub Desktop.
unittest or unittest2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if sys.version_info >= (2,7): | |
from unittest import * | |
else: | |
try: | |
from unittest2 import * | |
except ImportError: | |
print('To run tests in python 2.6 you need to install\ | |
the unitest2 package') | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment