diff options
| author | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-03-22 23:07:48 +0100 |
|---|---|---|
| committer | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-03-22 23:07:48 +0100 |
| commit | ba0e7cd8ba5f803e73fc0f86dee1f7266aaaa366 (patch) | |
| tree | 14052679193fd3e0abe52fd7c7aee55c8df2eafb /tests/test_sql.py | |
| parent | 7e68223049dae397186c5c0c32f9cc903fd82fb3 (diff) | |
| parent | b82317034f4c3c8912beb3a5f5b16ace6c36c201 (diff) | |
| download | pygments-git-ba0e7cd8ba5f803e73fc0f86dee1f7266aaaa366.tar.gz | |
Merged birkenfeld/pygments-main into default.
Diffstat (limited to 'tests/test_sql.py')
| -rw-r--r-- | tests/test_sql.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test_sql.py b/tests/test_sql.py index 37a81ff8..f4016918 100644 --- a/tests/test_sql.py +++ b/tests/test_sql.py @@ -6,12 +6,10 @@ :copyright: Copyright 2006-2016 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ -import io -import os.path import unittest from pygments.lexers.sql import TransactSqlLexer -from pygments.token import Comment, Error, Name, Number, Whitespace +from pygments.token import Comment, Name, Number, Whitespace class TransactSqlLexerTest(unittest.TestCase): @@ -65,12 +63,3 @@ class TransactSqlLexerTest(unittest.TestCase): (Comment.Multiline, '*/'), (Comment.Multiline, '*/'), )) - - def test_can_lex_example_file(self): - tests_path = os.path.dirname(__file__) - example_path = os.path.join(tests_path, 'examplefiles', 'test_transact-sql.txt') - - with io.open(example_path, 'r', encoding='utf-8') as example_file: - example_code = example_file.read() - for token_type, token_value in self.lexer.get_tokens(example_code): - self.assertNotEqual(Error, token_type, 'token_value=%r' % token_value) |
