summaryrefslogtreecommitdiff
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
commit3735e9c24e269822c84d865ed5d7e05265727944 (patch)
tree8c7cb111a0712d8a12fd5424def249abdd3d7718
parent749842e13e5d44236716529f18c3471229fe12de (diff)
downloadpygments-3735e9c24e269822c84d865ed5d7e05265727944.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.
-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"'))