Merge branch 'move_assert-msg-test' into 'main'

Convert tests/assert-msg-test* to glib/tests/assert-msg-test*

Closes #1434

See merge request GNOME/glib!2767
This commit is contained in:
Philip Withnall
2022-06-28 10:41:59 +00:00
10 changed files with 386 additions and 89 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: