Skip to content

Commit 4acda26

Browse files
committed
Fix condition that was missing after nodejs#26
This is especially usefull when a version line is contained inside a yaml block Signed-off-by: Frederic Martinsons <[email protected]>
1 parent e23cd26 commit 4acda26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tap2junit/tap13.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _parse(self, source):
107107
self.__tests_counter = 0
108108

109109
for line in source:
110-
if not version12 and not seek_version and RE_VERSION.match(line):
110+
if not version12 and not seek_version and not in_yaml and RE_VERSION.match(line):
111111
# refack: breaking TAP13 spec, to allow multiple TAP headers
112112
seek_version = True
113113
seek_plan = False

0 commit comments

Comments
 (0)