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