diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-19 19:51:44 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-26 20:53:43 -0400 |
commit | 739de7b088614e811b8f68ab8357e088239aafa7 (patch) | |
tree | 44fea2a6eef958a1f9bc6c7087ba57a62819bfe2 /unittests/windowstests.py | |
parent | 67792fc223daac88dcc4d5f5e981f3724b87e9b4 (diff) | |
download | meson-739de7b088614e811b8f68ab8357e088239aafa7.zip meson-739de7b088614e811b8f68ab8357e088239aafa7.tar.gz meson-739de7b088614e811b8f68ab8357e088239aafa7.tar.bz2 |
unittests: use better assert methods
assertTrue and assertFalse are recommended against, if you can get a
more specific assertion. And sometimes it is considerably shorter, for
example we have a custom assertPathExists which we can take advantage
of.
Diffstat (limited to 'unittests/windowstests.py')
-rw-r--r-- | unittests/windowstests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/windowstests.py b/unittests/windowstests.py index 1e5964c..bd75c74 100644 --- a/unittests/windowstests.py +++ b/unittests/windowstests.py @@ -318,7 +318,7 @@ class WindowsTests(BasePlatformTests): def sanitycheck_vscrt(vscrt): checks = self.get_meson_log_sanitychecks() - self.assertTrue(len(checks) > 0) + self.assertGreater(len(checks), 0) for check in checks: self.assertIn(vscrt, check) |