Skip to content

Commit aa19d7b

Browse files
committed
Fixed TestRestartingContainer
1 parent d382482 commit aa19d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,8 @@ def runTest(self):
917917
with self.assertRaises(docker.errors.APIError) as exc:
918918
self.client.remove_container(id)
919919
err = exc.exception.response.text
920-
self.assertTrue(
921-
err.startswith('You cannot remove a running container')
920+
self.assertIn(
921+
'You cannot remove a running container', err
922922
)
923923
self.client.remove_container(id, force=True)
924924

0 commit comments

Comments
 (0)