diff options
author | Tim Hatch <tim@timhatch.com> | 2015-10-14 10:17:36 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2015-10-14 10:17:36 -0700 |
commit | 985cdcdaadbdc5308745fe01f29811a130c0c1a6 (patch) | |
tree | 4f79a751c2b7e0829c3fdc925e3d156f26fd24b4 /tests/test_basic_api.py | |
parent | b32f41b5e0299aff76127015204af0b10f7c077b (diff) | |
download | pygments-985cdcdaadbdc5308745fe01f29811a130c0c1a6.tar.gz |
Rework of shell session lexers
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r-- | tests/test_basic_api.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index be74c1bf..022e6c55 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -98,13 +98,10 @@ def test_lexer_options(): inst = cls(stripall=True) ensure(inst.get_tokens(' \n b\n\n\n'), 'b\n') # some lexers require full lines in input - if cls.__name__ not in ( - 'PythonConsoleLexer', 'RConsoleLexer', 'RubyConsoleLexer', - 'SqliteConsoleLexer', 'MatlabSessionLexer', 'ErlangShellLexer', - 'BashSessionLexer', 'LiterateHaskellLexer', 'LiterateAgdaLexer', - 'PostgresConsoleLexer', 'ElixirConsoleLexer', 'JuliaConsoleLexer', - 'RobotFrameworkLexer', 'DylanConsoleLexer', 'ShellSessionLexer', - 'LiterateIdrisLexer', 'LiterateCryptolLexer'): + if ('ConsoleLexer' not in cls.__name__ and + 'SessionLexer' not in cls.__name__ and + not cls.__name__.startswith('Literate') and + cls.__name__ not in ('ErlangShellLexer', 'RobotFrameworkLexer')): inst = cls(ensurenl=False) ensure(inst.get_tokens('a\nb'), 'a\nb') inst = cls(ensurenl=False, stripall=True) |