Skip to content

Commit

Permalink
Bugfix: _handle_indentation in seek_test should only account for whit…
Browse files Browse the repository at this point in the history
…espace stripped from the lefthand side of the test line
  • Loading branch information
djangovanderheijden authored Oct 17, 2024
1 parent 0601e2d commit 66d7d20
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 @@ -184,7 +184,7 @@ def _parse(self, source):
if seek_test:
match = RE_TEST_LINE.match(line)
if match:
self._handle_indentation(len(unstriped_line) - len(line))
self._handle_indentation(len(unstriped_line) - len(unstriped_line.lstrip()))
self.__tests_counter[-1] += 1
t_attrs = match.groupdict()
if t_attrs["id"] is None:
Expand Down

0 comments on commit 66d7d20

Please sign in to comment.