aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2022-03-30 16:31:48 +0200
committerXavier Claessens <xclaesse@gmail.com>2022-03-30 12:02:39 -0400
commitb44042b5a9f7d73112fd174a3fa70095a5b8b0ac (patch)
tree19b8c440c40357202e50d9e83c713a03f2e6882a
parent2cdddbab56ffdbca6accfc626521968fbe2c917e (diff)
downloadmeson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.zip
meson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.tar.gz
meson-b44042b5a9f7d73112fd174a3fa70095a5b8b0ac.tar.bz2
unittests: correctly use test asserts instead of regular ones
-rw-r--r--unittests/platformagnostictests.py4
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())