summaryrefslogtreecommitdiff
path: root/tests/test_terminal_formatter.py
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2019-05-18 14:18:34 +0200
committerMatth?us G. Chajdas <dev@anteru.net>2019-05-18 14:18:34 +0200
commit179a49193ef82737ed609efd677da6ef94da34b4 (patch)
tree7aac8bc57173f65c666f6c0e8d344f9e7c37981d /tests/test_terminal_formatter.py
parent4a5f6e9cbc7537c82e576ad16246d77763800ade (diff)
downloadpygments-git-179a49193ef82737ed609efd677da6ef94da34b4.tar.gz
Update terminal formatter tests.
In eea5abc9161a, we changed the TerminalFormatter to use bright instead of bold, and this caused the tests here to fail.
Diffstat (limited to 'tests/test_terminal_formatter.py')
-rw-r--r--tests/test_terminal_formatter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_terminal_formatter.py b/tests/test_terminal_formatter.py
index 1f44807d..acc15167 100644
--- a/tests/test_terminal_formatter.py
+++ b/tests/test_terminal_formatter.py
@@ -90,13 +90,13 @@ async def function(a,b,c, *d, **kwarg:Bool)->Bool:
def test_256esc_seq(self):
"""
- test that a few escape sequences are actualy used when using ansi<> color codes
+ test that a few escape sequences are actually used when using ansi<> color codes
"""
def termtest(x):
return highlight(x, Python3Lexer(),
Terminal256Formatter(style=MyStyle))
- self.assertTrue('32;41' in termtest('0x123'))
- self.assertTrue('32;42' in termtest('123'))
- self.assertTrue('30;01' in termtest('#comment'))
- self.assertTrue('34;41' in termtest('"String"'))
+ self.assertTrue('32;101' in termtest('0x123'))
+ self.assertTrue('92;42' in termtest('123'))
+ self.assertTrue('90' in termtest('#comment'))
+ self.assertTrue('94;41' in termtest('"String"'))