upgrades: Cleanup use of return value from _apt_run

_apt_run does not return anything.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Update test case]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2025-04-07 18:28:00 -07:00
1 parent 97cc901fe6
commit e4586eeb72
2 files changed
+1 -9

No files matched your search

@@ -396,10 +396,6 @@ def test_apt_full_upgrade(apt_run):
distupgrade._apt_full_upgrade()
apt_run.assert_called_with(['full-upgrade'])
apt_run.return_value = 1
with pytest.raises(RuntimeError):
distupgrade._apt_full_upgrade()
@patch('subprocess.run')
def test_unatteneded_upgrades_run(run):