]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/ukify/test/test_ukify.py
Merge pull request #28743 from mrc0mmand/lint-python-scripts
[thirdparty/systemd.git] / src / ukify / test / test_ukify.py
index c83435ec184f745adae4c329312d733ef0a5db0b..7c25aace81d222ea6e0d0e46710aacde98a13c30 100755 (executable)
@@ -143,10 +143,8 @@ def test_apply_config(tmp_path):
     assert ns.phase_path_groups == [['enter-initrd:leave-initrd:sysinit:ready:shutdown:final']]
 
 def test_parse_args_minimal():
-    try:
+    with pytest.raises(ValueError):
         ukify.parse_args([])
-    except ValueError as e:
-        print(f'expected failure: {e}')
 
     opts = ukify.parse_args('arg1 arg2'.split())
     assert opts.linux == pathlib.Path('arg1')