mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Use only rv['StatusCode'] to simplify code (#1982)
This commit is contained in:
@@ -120,10 +120,7 @@ class TrackedContainer:
|
||||
assert not self.get_warnings(logs)
|
||||
if no_errors:
|
||||
assert not self.get_errors(logs)
|
||||
if no_failure:
|
||||
assert rv == 0 or rv["StatusCode"] == 0
|
||||
else:
|
||||
assert rv != 0 and rv["StatusCode"] != 0
|
||||
assert no_failure == (rv["StatusCode"] == 0)
|
||||
return logs
|
||||
|
||||
@staticmethod
|
||||
|
Reference in New Issue
Block a user