Skip to content

Commit 9c7fc72

Browse files
committed
Dangerous nsenter no longer called not on snap
1 parent 38d7d4d commit 9c7fc72

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

checkbox-ng/plainbox/impl/test_execution.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ class TestDangerousNsenter(TestCase):
275275
def call_args_to_string(self, call_arg):
276276
return " ".join(str(x) for x in call_arg[0][0])
277277

278-
@mock.patch("plainbox.impl.execution.check_output")
279-
@mock.patch("plainbox.impl.execution.check_call")
280-
@mock.patch("plainbox.impl.execution.run")
281-
def test_dangerous_nsenter_not_needed(
282-
self, run_mock, check_call_mock, check_output_mock
283-
):
284-
with dangerous_nsenter(None):
285-
pass
286-
self.assertFalse(run_mock.called)
287-
self.assertFalse(check_call_mock.called)
288-
self.assertFalse(check_output_mock.called)
289-
290278
@mock.patch("plainbox.impl.execution.check_output")
291279
@mock.patch("plainbox.impl.execution.check_call")
292280
@mock.patch("plainbox.impl.execution.run")

0 commit comments

Comments
 (0)