summaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index eb56c42be..88995c0fe 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1933,7 +1933,7 @@ class TestHarness:
# succeed on an invalid pattern.
raise MesonException(f'{arg} test name does not match any test')
- def get_tests(self, errorfile: T.Optional[T.IO] = sys.stdout) -> T.List[TestSerialisation]:
+ def get_tests(self, errorfile: T.Optional[T.IO] = None) -> T.List[TestSerialisation]:
if not self.tests:
print('No tests defined.', file=errorfile)
return []