From 000ff682fbf67334d607804c486a2bd92ec1cfbf Mon Sep 17 00:00:00 2001 From: Frederic Martinsons Date: Mon, 18 Jul 2022 14:49:09 +0200 Subject: [PATCH] Fix condition that was missing after #26 This is especially usefull when a version line is contained inside a yaml block Signed-off-by: Frederic Martinsons --- tap2junit/tap13.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap2junit/tap13.py b/tap2junit/tap13.py index c7bd742..7f0d97c 100644 --- a/tap2junit/tap13.py +++ b/tap2junit/tap13.py @@ -107,7 +107,7 @@ def _parse(self, source): self.__tests_counter = 0 for line in source: - if not version12 and not seek_version and RE_VERSION.match(line): + if not version12 and not seek_version and not in_yaml and RE_VERSION.match(line): # refack: breaking TAP13 spec, to allow multiple TAP headers seek_version = True seek_plan = False