diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-03-30 16:31:48 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-03-30 12:02:39 -0400 |
commit | b44042b5a9f7d73112fd174a3fa70095a5b8b0ac (patch) | |
tree | 19b8c440c40357202e50d9e83c713a03f2e6882a | |
parent | 2cdddbab56ffdbca6accfc626521968fbe2c917e (diff) | |
download | meson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.zip meson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.tar.gz meson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.tar.bz2 |
unittests: correctly use test asserts instead of regular ones
-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()) |