summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2012-05-15 16:41:52 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2012-05-15 16:41:52 +0200
commit48f7cc1c811cdfb807615931a0fa3d102aa1fa90 (patch)
treebb82d9bd3e5e52525d1a50e8161f975e34467268
parent2f5241843ca8e759526c105e77b5a5c00986a0a1 (diff)
downloadsemantic-version-48f7cc1c811cdfb807615931a0fa3d102aa1fa90.tar.gz
Add support for unittest2.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
-rwxr-xr-xtests/test_base.py6
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