From 03c92201e34cea40b494c4aefb324af100c181ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 13 Apr 2012 17:52:08 +0200 Subject: Make tests compatible with python2.6 + 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/test_base.py') diff --git a/tests/test_base.py b/tests/test_base.py index 0788f82..e0a6547 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -20,16 +20,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -try: - import unittest2 as unittest -except ImportError: - import unittest - import warnings from factory import base from factory import declarations +from .compat import unittest + class TestObject(object): def __init__(self, one=None, two=None, three=None, four=None): self.one = one -- cgit v1.2.3