tools: Enable color in pylint.

This commit is contained in:
Andrew Hamilton 2019-07-21 21:14:08 +10:00
parent 5949a82c2d
commit cfa591976c
4 changed files with 37 additions and 28 deletions

View file

@ -0,0 +1 @@


View file

@ -149,6 +149,8 @@ class TermStrTests(unittest.TestCase):
eris.terminal.ESC + "[0mbar"),
termstr.TermStr("foo").bg_color(5) +
termstr.TermStr("bar"))
self.assertEqual(TermStr.from_term(eris.terminal.ESC + "[1;3mfoo"),
termstr.TermStr("foo").bold().italic())
if __name__ == "__main__":