tests: use unittest2 if available

This fixes a test failure on RHEL 6.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-06-12 13:36:49 +02:00
parent 81b71b9ed3
commit a54b68d08b
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@
# -*- coding: utf-8 -*-
import mock
import unittest
try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import sys