X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Fpy%2Ftests%2Ftest_bind.py;h=20c6050342a9061ffb1bd33437a008be427259dd;hb=92329e2413f444d1edf29bab66aefccfd782e0a7;hp=ccf6d62ea8acf23e5fac4acda029288f75609a31;hpb=77c07e7ed36cae250a3562ee4bed0fa537960354;p=oweals%2Fu-boot.git diff --git a/test/py/tests/test_bind.py b/test/py/tests/test_bind.py index ccf6d62ea8..20c6050342 100644 --- a/test/py/tests/test_bind.py +++ b/test/py/tests/test_bind.py @@ -9,11 +9,11 @@ def in_tree(response, name, uclass, drv, depth, last_child): lines = [x.strip() for x in response.splitlines()] leaf = ' ' * 4 * depth; if not last_child: - leaf = leaf + '\|' + leaf = leaf + r'\|' else: leaf = leaf + '`' leaf = leaf + '-- ' + name - line = (' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$' + line = (r' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$' .format(uclass, drv, leaf)) prog = re.compile(line) for l in lines: