Skip to content

Commit

Permalink
unittests: use subTest for FailureTest::test_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Dec 4, 2023
1 parent 4f3a514 commit 63a21eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unittests/failuretests.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def test_dependency(self):
("dependency('zlib', method : 1)", "dependency keyword argument 'method' was of type int but should have been str"),
("dependency('zlibfail')", self.dnf),)
for contents, match in a:
self.assertMesonRaises(contents, match)
with self.subTest(contents):
self.assertMesonRaises(contents, match)

def test_apple_frameworks_dependency(self):
if not is_osx():
Expand Down

0 comments on commit 63a21eb

Please sign in to comment.