From a54b68d08bc61c98903f6fd1a33f0a07cbb8ecd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 12 Jun 2017 13:36:49 +0200 Subject: [PATCH] tests: use unittest2 if available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a test failure on RHEL 6. Signed-off-by: Lubomír Sedlář --- tests/test_phase_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_phase_base.py b/tests/test_phase_base.py index d0588fea..a8b9469a 100644 --- a/tests/test_phase_base.py +++ b/tests/test_phase_base.py @@ -2,7 +2,10 @@ # -*- coding: utf-8 -*- import mock -import unittest +try: + import unittest2 as unittest +except ImportError: + import unittest import os import sys