From 63a21eb9a9e40afb0c784ba54303369586f0c614 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 4 Dec 2023 11:54:40 -0800 Subject: [PATCH] unittests: use subTest for FailureTest::test_dependency --- unittests/failuretests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/failuretests.py b/unittests/failuretests.py index 644113ca45e2..be8b9f242c92 100644 --- a/unittests/failuretests.py +++ b/unittests/failuretests.py @@ -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():