diff options
-rw-r--r-- | unittests/platformagnostictests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py index 6e0951f..f45e6b4 100644 --- a/unittests/platformagnostictests.py +++ b/unittests/platformagnostictests.py @@ -77,9 +77,9 @@ class PlatformAgnosticTests(BasePlatformTests): output = self.init(testdir) # Check if message is not printed to stdout while configuring - assert(log_msg not in output) + self.assertNotIn(log_msg, output) # Check if message is written to the meson log mesonlog = os.path.join(self.builddir, 'meson-logs/meson-log.txt') with open(mesonlog, mode='r', encoding='utf-8') as file: - assert(log_msg in file.read()) + self.assertIn(log_msg, file.read()) |