Klaus Demo ~jonashaag/klaus / 85063c9
Properly escape backslash, fixes warning on Python >= 3.5. Jelmer Vernooń≥ 4 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1212 manpage = force_unicode(subprocess.check_output(["man", "./klaus.1"]))
1313
1414 def assert_in_manpage(s):
15 clean = lambda x: re.sub('(.\\x08)|\s', '', x)
15 clean = lambda x: re.sub('(.\\x08)|\\s', '', x)
1616 assert clean(s) in clean(manpage), "%r not found in manpage" % s
1717
1818 mock_parser = mock.Mock()