From 48f7cc1c811cdfb807615931a0fa3d102aa1fa90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 15 May 2012 16:41:52 +0200 Subject: [PATCH] Add support for unittest2. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- tests/test_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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