aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-18 13:41:12 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-06 08:44:22 +0100
commit304abaf9ee3fd3c2cfd092811f26117d231a6a28 (patch)
tree86af0dc56d04b6a46ac53c3fd7673f160ad177d8 /run_unittests.py
parentee5e7977e3e6a24806b467010deedc71898c0aa2 (diff)
downloadmeson-304abaf9ee3fd3c2cfd092811f26117d231a6a28.zip
meson-304abaf9ee3fd3c2cfd092811f26117d231a6a28.tar.gz
meson-304abaf9ee3fd3c2cfd092811f26117d231a6a28.tar.bz2
mtest: remove argument to the TAPParser constructor
Pass the StringIO object to the parse method instead, because there will be no T.Iterator[str] to use in the asynchronous case. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 1ff54eb..709f019 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -8875,8 +8875,8 @@ class TAPParserTests(unittest.TestCase):
next(events)
def parse_tap(self, s):
- parser = TAPParser(io.StringIO(s))
- return iter(parser.parse())
+ parser = TAPParser()
+ return iter(parser.parse(io.StringIO(s)))
def parse_tap_v13(self, s):
events = self.parse_tap('TAP version 13\n' + s)