Fix tests when there is an image with int tag

This commit is contained in:
Ben Firshman 2014-02-17 21:32:48 +00:00
parent 4a6897ef3b
commit 5d4210ceb3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class DockerClientTestCase(unittest.TestCase):
self.client.kill(c['Id'])
self.client.remove_container(c['Id'])
for i in self.client.images():
if 'figtest' in i['Tag']:
if isinstance(i['Tag'], basestring) and 'figtest' in i['Tag']:
self.client.remove_image(i)
def create_service(self, name, **kwargs):