Skip to content

Commit a0652cf

Browse files
committed
Add test for Don't try to parse the response json when not_modified #550
Signed-off-by: Jaroslav Henner <[email protected]>
1 parent 98a341b commit a0652cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

podman/tests/integration/test_containers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def test_container_crud(self):
142142

143143
# Try stopping the already stopped.
144144
# See https://github.com/containers/podman-py/pull/550 for more info.
145-
top_ctnr.stop()
145+
with self.assertRaises(APIError):
146+
top_ctnr.stop()
146147

147148
top_ctnr.reload()
148149
self.assertIn(top_ctnr.status, ("exited", "stopped"))

0 commit comments

Comments
 (0)