Port to Python 3

This should make all tests pass on both Python 2 and Python 3.

Unittest2 is required on Py 2.6 and Py 3.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-09-05 10:01:21 +02:00
parent 3088df8e60
commit ed22e07ef9
50 changed files with 203 additions and 208 deletions

View file

@ -6,7 +6,7 @@ import mock
import os
import sys
import StringIO
from six.moves import StringIO
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
@ -19,7 +19,7 @@ class CreateIsoScriptTest(helpers.PungiTestCase):
def setUp(self):
super(CreateIsoScriptTest, self).setUp()
self.outdir = os.path.join(self.topdir, 'isos')
self.out = StringIO.StringIO()
self.out = StringIO()
self.maxDiff = None
def assertScript(self, cmds):