tests: Use unittest2 when available

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-07-18 12:53:00 +02:00
parent 6080b45178
commit 0b9652f2d6

View File

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