Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions testflows/_core/transform/log/fails.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
import textwrap
import functools
import re

import testflows.settings as settings

Expand Down Expand Up @@ -227,7 +226,6 @@ def format_result(
Message.RESULT.name: (format_result,),
}


def transform(
brisk=False, plain=False, nice=False, pnice=False, only_new=False, show_input=True
):
Expand Down Expand Up @@ -260,11 +258,10 @@ def transform(
if not test_id in buffer:
buffer[test_id] = []

pattern = re.compile(
r"|".join(re.escape(_t + sep) for _t in skip_for_buffer[0])
)
if pattern.match(test_id):
skip = True
for _t in skip_for_buffer[0]:
if test_id.startswith(_t + sep):
skip = True
break

if not skip:
buffer[test_id].append(line)
Expand Down
Loading