Tests fail if unittest2 library is missing
Merges: https://pagure.io/pungi/pull-request/894 Signed-off-by: Ondrej Nosek <onosek@redhat.com>
This commit is contained in:
parent
6454f30714
commit
7798174b30
3 changed files with 12 additions and 6 deletions
|
|
@ -1,10 +1,13 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import itertools
|
||||
import mock
|
||||
import os
|
||||
import sys
|
||||
import unittest2 as unittest
|
||||
import itertools
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue