unittests: correctly use test asserts instead of regular ones

pull/10214/head
Marvin Scholz 3 years ago committed by Xavier Claessens
parent 2cdddbab56
commit b44042b5a9
  1. 4
      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())

Loading…
Cancel
Save