Properly escape backslash, fixes warning on Python >= 3.5.
Jelmer Vernooij
1 year, 11 months ago
12 | 12 | manpage = force_unicode(subprocess.check_output(["man", "./klaus.1"])) |
13 | 13 | |
14 | 14 | def assert_in_manpage(s): |
15 | clean = lambda x: re.sub('(.\\x08)|\s', '', x) | |
15 | clean = lambda x: re.sub('(.\\x08)|\\s', '', x) | |
16 | 16 | assert clean(s) in clean(manpage), "%r not found in manpage" % s |
17 | 17 | |
18 | 18 | mock_parser = mock.Mock() |