diff --git a/tests/testcases.py b/tests/testcases.py index 13c24a928..7a6c8e4ad 100644 --- a/tests/testcases.py +++ b/tests/testcases.py @@ -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):