Fix some coding style issues in python tests pointed out by black and flake8

This commit is contained in:
Emmanuel Fleury 2022-06-23 18:41:31 +02:00 committed by Philip Withnall
parent 207b8cb8a5
commit 5699b7b169
2 changed files with 2 additions and 3 deletions

View File

@ -25,9 +25,9 @@ for filename in in_files:
with open(filename, "rb") as f:
for line in f:
line = line.rstrip(b"\n").rstrip(b"\r")
match = re.search(br"\bg_[a-zA-Z0-9_]*_get_type\b", line)
match = re.search(rb"\bg_[a-zA-Z0-9_]*_get_type\b", line)
if match:
func = match.group(0).decode('utf-8')
func = match.group(0).decode("utf-8")
if func not in funcs:
funcs.append(func)
if debug:

View File

@ -25,7 +25,6 @@ import os
import shutil
import subprocess
import sys
from textwrap import dedent
import unittest
import taptestrunner