mirror of https://github.com/docker/compose.git
Fix Python 2.6
This commit is contained in:
parent
8de07ccf65
commit
f96a1a0b35
|
@ -0,0 +1,7 @@
|
|||
import sys
|
||||
|
||||
if sys.version_info >= (2,7):
|
||||
import unittest
|
||||
else:
|
||||
import unittest2 as unittest
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
from docker import Client
|
||||
from fig.service import Service
|
||||
from fig.cli.utils import docker_url
|
||||
from unittest2 import TestCase
|
||||
from . import unittest
|
||||
|
||||
|
||||
class DockerClientTestCase(TestCase):
|
||||
class DockerClientTestCase(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.client = Client(docker_url())
|
||||
|
|
Loading…
Reference in New Issue