When using Tidy for HTML matching check, the regular expression to get the count of warnings and errors might not work with all Tidy versions. Therefore I had to switch from:
str_pattern = r'.*Tidy found ([0-9]+) warnings and ([0-9]+) errors.*$'
to:
str_pattern = r'.*([0-9]+) warnings, ([0-9]+) error were found!.*$'
When using Tidy for HTML matching check, the regular expression to get the count of warnings and errors might not work with all Tidy versions. Therefore I had to switch from:
str_pattern = r'.*Tidy found ([0-9]+) warnings and ([0-9]+) errors.*$'
to:str_pattern = r'.*([0-9]+) warnings, ([0-9]+) error were found!.*$'