summaryrefslogtreecommitdiff
path: root/tests/test_sql.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:38:53 +0100
committerGeorg Brandl <georg@python.org>2021-01-20 10:52:51 +0100
commitdc9bf0c256dbd88c72349822d59b25f9d8225dc6 (patch)
tree5ead8cd9fd013a4ad132d258b6ba8c7f5a5cc1c7 /tests/test_sql.py
parent91474bd6788c6c3124edba1a09fa20860200c92a (diff)
downloadpygments-git-dc9bf0c256dbd88c72349822d59b25f9d8225dc6.tar.gz
tests: code style fixups
Diffstat (limited to 'tests/test_sql.py')
-rw-r--r--tests/test_sql.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_sql.py b/tests/test_sql.py
index 590b0cd5..8fbd3eea 100644
--- a/tests/test_sql.py
+++ b/tests/test_sql.py
@@ -10,7 +10,7 @@ import pytest
from pygments.lexers.sql import name_between_bracket_re, \
name_between_backtick_re, tsql_go_re, tsql_declare_re, \
- tsql_variable_re, MySqlLexer, SqlLexer, TransactSqlLexer
+ tsql_variable_re, MySqlLexer, TransactSqlLexer
from pygments.token import Comment, Name, Number, Punctuation, Whitespace
@@ -60,9 +60,10 @@ def test_can_lex_integer(lexer):
def test_can_lex_names(lexer):
- _assert_are_tokens_of_type(lexer,
- 'thingy thingy123 _thingy _ _123 Ähnliches Müll #temp1 ##temp2',
- Name)
+ _assert_are_tokens_of_type(
+ lexer,
+ 'thingy thingy123 _thingy _ _123 Ähnliches Müll #temp1 ##temp2',
+ Name)
def test_can_lex_comments(lexer):
@@ -90,7 +91,6 @@ def test_can_match_analyze_text_res():
def test_can_analyze_text():
mysql_lexer = MySqlLexer()
- sql_lexer = SqlLexer()
tsql_lexer = TransactSqlLexer()
code_to_expected_lexer_map = {
'select `a`, `bc` from some': mysql_lexer,