Skip to content

Commit

Permalink
Fix condition that was missing after #26
Browse files Browse the repository at this point in the history
This is especially usefull when a version line is contained
inside a yaml block

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
  • Loading branch information
fmartinsons committed Jul 18, 2022
1 parent 86f356c commit 000ff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap2junit/tap13.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 000ff68

Please sign in to comment.