diff options
author | Tim Hatch <tim@timhatch.com> | 2015-10-14 17:46:01 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2015-10-14 17:46:01 -0700 |
commit | c1e48207c44e49ed0c0e45f81f4a4c19041d5fcb (patch) | |
tree | b084ba7a352aac219249fb07366be69cdce97e24 /tests/test_basic_api.py | |
parent | 88627c9a5973f7b664448f0b166273dbf3b87db2 (diff) | |
parent | 2bfc536db8c705f73d72081ed436699915a502a3 (diff) | |
download | pygments-c1e48207c44e49ed0c0e45f81f4a4c19041d5fcb.tar.gz |
Merged in MadcapJake/pygments-main (pull request #499)
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) |