diff options
author | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2012-05-15 16:41:52 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2012-05-15 16:41:52 +0200 |
commit | 48f7cc1c811cdfb807615931a0fa3d102aa1fa90 (patch) | |
tree | bb82d9bd3e5e52525d1a50e8161f975e34467268 /tests | |
parent | 2f5241843ca8e759526c105e77b5a5c00986a0a1 (diff) | |
download | semantic-version-48f7cc1c811cdfb807615931a0fa3d102aa1fa90.tar.gz |
Add support for unittest2.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index 0543744..7d34878 100755 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -4,7 +4,11 @@ """Test the various functions from 'base'.""" -import unittest +try: # pragma: no cover + import unittest2 as unittest +except ImportError: # pragma: no cover + import unittest + from semantic_version import base |