Fixed import of test functions from Python 2.7 unittest.

This commit is contained in:
Daniele Varrazzo 2010-11-19 18:01:29 +00:00
parent bbe28ba75f
commit ed3b2188fe

View File

@ -12,7 +12,8 @@ except ImportError:
unittest2 = None
if hasattr(unittest, 'skipIf'):
from unittest2 import skip, skipIf
skip = unittest.skip
skipIf = unittest.skipIf
else:
import warnings