File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def test_build_container_with_target(self):
275275 pass
276276
277277 info = self .client .inspect_image ('build1' )
278- assert not info ['Config' ]['OnBuild' ]
278+ assert 'OnBuild' not in info [ 'Config' ] or not info ['Config' ]['OnBuild' ]
279279
280280 @requires_api_version ('1.25' )
281281 def test_build_with_network_mode (self ):
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def test_build_container_with_target(self):
266266 pass
267267
268268 info = self .client .inspect_image ('build1' )
269- assert not info ['Config' ]['OnBuild' ]
269+ assert 'OnBuild' not in info [ 'Config' ] or not info ['Config' ]['OnBuild' ]
270270
271271 @requires_api_version ('1.25' )
272272 def test_build_with_network_mode (self ):
You can’t perform that action at this time.
0 commit comments