Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11.3: pytest based test suite is failing #902

Closed
kloczek opened this issue May 28, 2021 · 10 comments
Closed

0.11.3: pytest based test suite is failing #902

kloczek opened this issue May 28, 2021 · 10 comments

Comments

@kloczek
Copy link

kloczek commented May 28, 2021

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-lark-0.11.3-0.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-lark-0.11.3-0.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/lark-0.11.3
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, hypothesis-6.13.7
collected 990 items / 1 error / 989 selected

================================================================================== ERRORS ==================================================================================
___________________________________________________________ ERROR collecting tests/test_nearley/test_nearley.py ____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_nearley/test_nearley.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_nearley/test_nearley.py:20: in <module>
    raise ImportError("Skipping Nearley tests!")
E   ImportError: Skipping Nearley tests!
----------------------------------------------------------------------------- Captured stderr ------------------------------------------------------------------------------
Nearley not installed. Skipping Nearley tests!
============================================================================= warnings summary =============================================================================
tests/test_cache.py:110
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_cache.py:110: DeprecationWarning: invalid escape sequence \d
    g = """

tests/test_cache.py:48
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_cache.py:48: PytestCollectionWarning: cannot collect test class 'TestT' because it has a __init__ constructor (from: tests/test_cache.py)
    class TestT(Transformer):

tests/test_parser.py:166
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_parser.py:166: DeprecationWarning: invalid escape sequence \d
    g = """

tests/test_reconstructor.py:75
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_reconstructor.py:75: DeprecationWarning: invalid escape sequence \s
    g = """

tests/test_reconstructor.py:90
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_reconstructor.py:90: DeprecationWarning: invalid escape sequence \s
    g = """

tests/test_reconstructor.py:154
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_reconstructor.py:154: DeprecationWarning: invalid escape sequence \s
    g1 = """

tests/test_reconstructor.py:162
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_reconstructor.py:162: DeprecationWarning: invalid escape sequence \s
    g2 = """

tests/test_nearley/test_nearley.py:19
  /home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_nearley/test_nearley.py:19: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    logger.warn("Nearley not installed. Skipping Nearley tests!")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
ERROR tests/test_nearley/test_nearley.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 8 warnings, 1 error in 0.83s =======================================================================
@kloczek
Copy link
Author

kloczek commented May 28, 2021

Looks like setuptools based tests are failing as well (on first look because some files are missing in sdist pypu tar ball).

+ /usr/bin/python3 setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing lark.egg-info/PKG-INFO
writing dependency_links to lark.egg-info/dependency_links.txt
writing entry points to lark.egg-info/entry_points.txt
writing requirements to lark.egg-info/requires.txt
writing top-level names to lark.egg-info/top_level.txt
package init file 'lark/grammars/__init__.py' not found (or not a regular file)
package init file 'lark-stubs/__init__.py' not found (or not a regular file)
reading manifest file 'lark.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'examples/*.lark'
writing manifest file 'lark.egg-info/SOURCES.txt'
running build_ext
Nearley not installed. Skipping Nearley tests!
Warning: Skipping tests for Nearley grammar imports (js2py required)
test_automatic_naming (tests.test_cache.TestCache) ... ok
test_custom_lexer (tests.test_cache.TestCache) ... ok
test_imports (tests.test_cache.TestCache) ... ERROR
test_inline (tests.test_cache.TestCache) ... ok
test_options (tests.test_cache.TestCache) ... ok
test_simple (tests.test_cache.TestCache) ... ok
test_alias (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_empty (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_empty_end (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'Empty rules'
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestCykCustom_new)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'match_examples() not supported for CYK/old custom lexer'
test_maybe (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'Empty rules'
test_meddling_unused (tests.test_parser.tests.test_parser.TestCykCustom_new)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests effect of priority on result ... skipped "Doesn't work for CYK"
test_prioritization_sum (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestCykCustom_new)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestCykCustom_new)
Verify that stack depth isn't an issue for EBNF grammars ... skipped 'Takes forever'
test_start (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestCykCustom_new)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestCykCustom_new) ... skipped 'No empty rules'
test_unicode (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestCykCustom_new)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestCykCustom_new) ... ok
test_alias (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_empty (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_empty_end (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'Empty rules'
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestCykStandard)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestCykStandard)
Tests effect of priority on result ... ok
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestCykStandard)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'match_examples() not supported for CYK/old custom lexer'
test_maybe (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'Empty rules'
test_meddling_unused (tests.test_parser.tests.test_parser.TestCykStandard)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestCykStandard)
Tests effect of priority on result ... skipped "Doesn't work for CYK"
test_prioritization_sum (tests.test_parser.tests.test_parser.TestCykStandard)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestCykStandard)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestCykStandard)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestCykStandard)
Verify that stack depth isn't an issue for EBNF grammars ... skipped 'Takes forever'
test_start (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestCykStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestCykStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestCykStandard)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestCykStandard) ... skipped 'No empty rules'
test_unicode (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestCykStandard)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestCykStandard)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestCykStandard) ... ok
test_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped 'match_examples() not supported for CYK/old custom lexer'
test_maybe (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped 'Priority not handled correctly right now'
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyCustom_old)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestEarleyCustom_old) ... ok
test_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped "%declare/postlex doesn't work with dynamic"
test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped "%declare/postlex doesn't work with dynamic"
test_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests effect of priority on result ... ok
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped 'Priority not handled correctly right now'
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyDynamic)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic) ... ok
test_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped "%declare/postlex doesn't work with dynamic"
test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped "%declare/postlex doesn't work with dynamic"
test_prioritization (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests effect of priority on result ... ok
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped 'Priority not handled correctly right now'
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestEarleyDynamic_complete) ... ok
test_alias (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_empty (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped 'interactive_parser error handling only works with LALR for now'
test_escaped_string (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests effect of priority on result ... ok
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestEarleyStandard)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestEarleyStandard)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped 'interactive_parser is only implemented for LALR at the moment'
test_postlex_declare (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped 'Priority not handled correctly right now'
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestEarleyStandard)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestEarleyStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestEarleyStandard)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestEarleyStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestEarleyStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestEarleyStandard)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestEarleyStandard) ... ok
test_ambiguity1 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguity2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_conditionally_inlined_rule (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_inlined_rule (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_unnamed_token (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_symbol_and_intermediate_nodes (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_anon (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycle (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycle2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycles (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycles_with_child_filter (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley3 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley)
Tests prioritization and disambiguation for pseudo-terminals (there should be only one result) ... skipped 'Only relevant for the dynamic_complete parser'
test_earley4 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley_explicit_ambiguity (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley_repeating_empty (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_explicit_ambiguity2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... skipped 'Only relevant for the dynamic_complete parser'
test_fruitflies_ambig (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_many_cycles (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_nested_ambiguous_intermediate_nodes (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_nested_ambiguous_intermediate_nodes2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_term_ambig_resolve (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguity1 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguity2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_conditionally_inlined_rule (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_inlined_rule (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_intermediate_node_unnamed_token (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_ambiguous_symbol_and_intermediate_nodes (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_anon (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycle (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycle2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycles (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_cycles_with_child_filter (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley3 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley)
Tests prioritization and disambiguation for pseudo-terminals (there should be only one result) ... ok
test_earley4 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley_explicit_ambiguity (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_earley_repeating_empty (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_explicit_ambiguity2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_fruitflies_ambig (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_many_cycles (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_nested_ambiguous_intermediate_nodes (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_nested_ambiguous_intermediate_nodes2 (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_term_ambig_resolve (tests.test_parser._make_full_earley_test.<locals>._TestFullEarley) ... ok
test_alias_in_terminal (tests.test_grammar.TestGrammar) ... ok
test_errors (tests.test_grammar.TestGrammar) ... ok
test_extend_rule (tests.test_grammar.TestGrammar) ... ok
test_extend_term (tests.test_grammar.TestGrammar) ... ok
test_extend_twice (tests.test_grammar.TestGrammar) ... ok
test_find_grammar_errors (tests.test_grammar.TestGrammar) ... ok
test_import_custom_sources (tests.test_grammar.TestGrammar) ... ok
test_import_custom_sources2 (tests.test_grammar.TestGrammar) ... ok
test_import_custom_sources3 (tests.test_grammar.TestGrammar) ... ok
test_override_rule (tests.test_grammar.TestGrammar) ... ERROR
test_override_terminal (tests.test_grammar.TestGrammar) ... ok
test_token_multiline_only_works_with_x_flag (tests.test_grammar.TestGrammar) ... ok
test_undefined_ignore (tests.test_grammar.TestGrammar) ... ok
test_undefined_rule (tests.test_grammar.TestGrammar) ... ok
test_undefined_term (tests.test_grammar.TestGrammar) ... ok
test_alias (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_empty (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_escaped_string (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestLalrContextual)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrContextual)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrContextual) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestLalrContextual)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrContextual) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrContextual)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestLalrContextual)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrContextual)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestLalrContextual)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestLalrContextual) ... ok
test_alias (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_empty (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_escaped_string (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests effect of priority on result ... skipped 'Only standard lexers care about token priority'
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... skipped 'Serialize currently only works for LALR parsers without custom lexers (though it should be easy to extend)'
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestLalrCustom_new)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestLalrCustom_new) ... ok
test_alias (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_backslash (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_backslash2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_basic1 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_basic2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_bytes_utf8 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_dont_expand1_lists_with_multiple_items (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_dont_expand1_lists_with_multiple_items_2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_empty (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_empty_end (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_empty_expand1_list (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_empty_expand1_list_2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_empty_flatten_list (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_error_with_interactive_parser (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_escaped_string (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests common.ESCAPED_STRING ... ok
test_expand1_lists_with_one_item (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_expand1_lists_with_one_item_2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_float_without_lexer (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_g_regex_flags (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_hex_escape (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_hex_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_ignore (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_import_errors (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_import_rename (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_join_regex_flags (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_keep_all_tokens (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_lexer_detect_newline_tokens (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_lexer_prioritization (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests effect of priority on result ... ok
test_lexer_token_limit (tests.test_parser.tests.test_parser.TestLalrStandard)
Python has a stupid limit of 100 groups in a regular expression. Test that we handle this limitation ... ok
test_line_and_column (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_line_counting (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_match_examples (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_maybe (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_maybe_placeholders (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_meddling_unused (tests.test_parser.tests.test_parser.TestLalrStandard)
Unless 'unused' is removed, LALR analysis will fail on reduce-reduce collision ... ok
test_multi_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_multi_start (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_multiple_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_parser_interactive_parser (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_postlex_declare (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_postlex_indenter (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_prioritization (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests effect of priority on result ... ok
test_prioritization_sum (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests effect of priority on result ... skipped 'Currently only Earley supports priority sum in rules'
test_priority_vs_embedded (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_ranged_repeat_rules (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_ranged_repeat_terms (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_recurse_flatten (tests.test_parser.tests.test_parser.TestLalrStandard)
Verify that stack depth doesn't get exceeded on recursive rules marked for flattening. ... skipped "Flattening list isn't implemented (and may never be)"
test_reduce_cycle (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests an edge-condition in the LALR parser, in which a transition state looks exactly like the end state. ... ok
test_regex_escaping (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_regex_quote (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import_of_nested_grammar (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import_preserves_leading_underscore (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import_rename (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import_rules_dependencies_imported_only_once (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_import_unicode (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_multi_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_rule_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_rule_import_drop_ignore (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_rule_import_rename (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_rule_import_subrule (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_relative_rule_import_subrule_no_conflict (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_rule_collision (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_rule_collision2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_serialize (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_single_item_flatten_list (tests.test_parser.tests.test_parser.TestLalrStandard) ... skipped "Flattening list isn't implemented (and may never be)"
test_special_chars (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_stack_for_ebnf (tests.test_parser.tests.test_parser.TestLalrStandard)
Verify that stack depth isn't an issue for EBNF grammars ... ok
test_start (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_stringio_bytes (tests.test_parser.tests.test_parser.TestLalrStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... skipped 'cStringIO not available'
test_stringio_unicode (tests.test_parser.tests.test_parser.TestLalrStandard)
Verify that a Lark can be created from file-like objects other than Python's standard 'file' object ... ok
test_templates (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_templates_alias (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_templates_import (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_templates_modifiers (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_templates_recursion (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_templates_templates (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_collision (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_collision2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_collision_WS (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_ebnf (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_flags (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_flags2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_flags3 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_flags_verbose (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_flags_verbose_multiline (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_token_not_anon (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests that "a" is matched as an anonymous token, and not A. ... ok
test_twice_empty (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_unicode (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_unicode2 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_unicode3 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_unicode_class (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests that character classes from the `regex` module work correctly. ... ok
test_unicode_literal_range_escape (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_unicode_word (tests.test_parser.tests.test_parser.TestLalrStandard)
Tests that a persistent bug in the `re` module works when `regex` is enabled. ... ok
test_utf8 (tests.test_parser.tests.test_parser.TestLalrStandard) ... ok
test_basic (tests.test_lexer.TestLexer) ... ok
test_alias (tests.test_parser.TestParsers) ... ok
test_backwards_custom_lexer (tests.test_parser.TestParsers) ... ok
test_big_list (tests.test_parser.TestParsers) ... ok
test_comment_in_rule_definition (tests.test_parser.TestParsers) ... ok
test_embedded_transformer (tests.test_parser.TestParsers) ... ok
test_embedded_transformer_inplace (tests.test_parser.TestParsers) ... ok
test_expand1 (tests.test_parser.TestParsers) ... ok
test_infinite_recurse (tests.test_parser.TestParsers) ... ok
test_propagate_positions (tests.test_parser.TestParsers) ... ok
test_same_ast (tests.test_parser.TestParsers)
Tests that Earley and LALR parsers produce equal trees ... ok
test_vargs_meta (tests.test_parser.TestParsers) ... ok
test_vargs_tree (tests.test_parser.TestParsers) ... ok
test_visit_tokens (tests.test_parser.TestParsers) ... ok
test_visit_tokens2 (tests.test_parser.TestParsers) ... ok
test_alias (tests.test_reconstructor.TestReconstructor) ... ok
test_expand_rule (tests.test_reconstructor.TestReconstructor) ... ok
test_json_example (tests.test_reconstructor.TestReconstructor) ... ok
test_keep_tokens (tests.test_reconstructor.TestReconstructor) ... ok
test_starred_group (tests.test_reconstructor.TestReconstructor) ... ok
test_starred_rule (tests.test_reconstructor.TestReconstructor) ... ok
test_switch_grammar_unicode_terminal (tests.test_reconstructor.TestReconstructor)
This test checks that a parse tree built with a grammar containing only ascii characters can be reconstructed ... ok
test_contextual (tests.test_tools.TestStandalone) ... ok
test_postlex (tests.test_tools.TestStandalone) ... ok
test_simple (tests.test_tools.TestStandalone) ... ok
test_transformer (tests.test_tools.TestStandalone) ... ok
test_aliases (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_default_ambig (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_default_rule (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_default_token (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_discard (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_handles_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_identity_explicit_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_identity_resolve_ambiguity (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_rule_calls (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_token_calls (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_transformation (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_tree_class (tests.test_tree_forest_transformer.TestTreeForestTransformer) ... ok
test_deepcopy (tests.test_trees.TestTrees) ... ok
test_discard (tests.test_trees.TestTrees) ... ok
test_inline_static (tests.test_trees.TestTrees) ... ok
test_interp (tests.test_trees.TestTrees) ... ok
test_iter_subtrees (tests.test_trees.TestTrees) ... ok
test_iter_subtrees_topdown (tests.test_trees.TestTrees) ... ok
test_partial (tests.test_trees.TestTrees) ... ok
test_pickle (tests.test_trees.TestTrees) ... ok
test_repr_runnable (tests.test_trees.TestTrees) ... ok
test_transformer (tests.test_trees.TestTrees) ... ok
test_transformer_variants (tests.test_trees.TestTrees) ... ok
test_vargs (tests.test_trees.TestTrees) ... ok
test_vargs_override (tests.test_trees.TestTrees) ... ok
test_visitor (tests.test_trees.TestTrees) ... ok
test_debug (tests.test_logger.Testlogger) ... ok
test_loglevel_higher (tests.test_logger.Testlogger) ... ok
test_non_debug (tests.test_logger.Testlogger) ... ok

======================================================================
ERROR: test_imports (tests.test_cache.TestCache)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_cache.py", line 131, in test_imports
    parser = Lark(g, parser='lalr', start='startab', cache=True)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/lark.py", line 299, in __init__
    self.grammar, used_files = load_grammar(grammar, self.source_path, self.options.import_paths, self.options.keep_all_tokens)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1229, in load_grammar
    builder.load_grammar(grammar, source)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1082, in load_grammar
    self.do_import(dotted_path, base_path, aliases, mangle)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1162, in do_import
    open(grammar_path, encoding='utf8')
FileNotFoundError: [Errno 2] No such file or directory: 'grammars/ab.lark'

======================================================================
ERROR: test_override_rule (tests.test_grammar.TestGrammar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/tests/test_grammar.py", line 39, in test_override_rule
    self.assertRaises(GrammarError, Lark, """
  File "/usr/lib64/python3.8/unittest/case.py", line 816, in assertRaises
    return context.handle('assertRaises', args, kwargs)
  File "/usr/lib64/python3.8/unittest/case.py", line 202, in handle
    callable_obj(*args, **kwargs)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/lark.py", line 299, in __init__
    self.grammar, used_files = load_grammar(grammar, self.source_path, self.options.import_paths, self.options.keep_all_tokens)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1229, in load_grammar
    builder.load_grammar(grammar, source)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1082, in load_grammar
    self.do_import(dotted_path, base_path, aliases, mangle)
  File "/home/tkloczko/rpmbuild/BUILD/lark-0.11.3/lark/load_grammar.py", line 1162, in do_import
    open(grammar_path, encoding='utf8')
FileNotFoundError: [Errno 2] No such file or directory: 'test_templates_import.lark'

----------------------------------------------------------------------

@kloczek
Copy link
Author

kloczek commented May 28, 2021

Just tested test suite execution from tar ball autogenerated from git tag and all is failin the same way.

@MegaIng
Copy link
Member

MegaIng commented May 28, 2021

We are not using pytest, and it does some 'stupid' stuff that does not conform with the way we normally run tests (python -m tests). Won't fix.

I thought that setup.py test would run. We previously had similar error messages in #775. The issue might not be missing files, but an improper location of the __main__ module (from which imports are relative to). Can you try to run python -m tests?

@erezsh
Copy link
Member

erezsh commented May 29, 2021

Hi @kloczek,

Can you please be more specific about how you're running these tests, to make them fail?

The following works on my computer:

git clone https://github.com/lark-parser/lark
git submodule sync -q
git submodule update --init    # get nearley
python .\setup.py test         # or: python -m tests 

@kwshi
Copy link

kwshi commented Jul 21, 2021

@erezsh I'm running into this same issue, so I can chime in. The GitHub repo clone works fine, but the release archives ([GitHub] https://github.com/lark-parser/lark/archive/refs/tags/0.11.3.tar.gz, [PyPI] https://files.pythonhosted.org/packages/source/l/lark/lark-0.11.3.tar.gz) have failing tests with the exact same messages. Exact steps to run:

curl -L 'https://github.com/lark-parser/lark/archive/refs/tags/0.11.3.tar.gz' | tar -xz
cd lark-0.11.3
python setup.py test

Curiously enough, running python -m tests instead of python setup.py test actually produces successful, different output:

Nearley not installed. Skipping Nearley tests!
Warning: Skipping tests for Nearley grammar imports (js2py required)
..............ssssss.......s......s...sss...ss..ss...s.................ss.s.s.................s...............ssssss.......s..........sss...ss..ss...s.................ss.s.s.................s....................s..............s...s.....ss...ss..s.................ss...s......................................s..............s.........ssss..s..s.................ss...s......................................s..............s.........ssss..s..s.................ss...s......................................s........................ss...ss..s.................ss...s.......................................s...s........................................................................s.........s....s...s..................s...s.....................................................s.........s....s...s.................ss...s...............................................................s....s...s..................s...s................................................................................
----------------------------------------------------------------------
Ran 988 tests in 30.013s

OK (skipped=103)

@MegaIng
Copy link
Member

MegaIng commented Jul 21, 2021

The release 0.11.3 does not include the fix from this commit: a2107da, master does.

@kloczek
Copy link
Author

kloczek commented Jul 21, 2021

Curiously enough, running python -m tests instead of python setup.py test actually produces successful,

Easy to explain .. when python is started by python -m <module> it adds to teh sys.path upfront current path.
This is why recommended way of using pytest is by execute pytest shell script instead python -m pytest (to avoid testting source tree instead what is available in PYTHONPATH or in system resources).
I've learned about thay from pytest maintainers after I'vce create that ticket.
Since then I'm no longer using python -m pytest (I had many issues especially with testing modules with DSOs on building rpm packages with python modules)

@kloczek
Copy link
Author

kloczek commented Jul 21, 2021

pytest-dev/pytest#8731

@erezsh
Copy link
Member

erezsh commented Jul 21, 2021

Can you please check if it works for the master branch?

@MegaIng
Copy link
Member

MegaIng commented Jul 21, 2021

That is only somewhat a correct diagnostic. The problem is the same as in #775: When not specified, it is assumed that relative imports from a string are relative to __main__.__file__. That is of course broken when python setup.py is called. The commit I linked fixed that by telling Lark to what the imports are realtive to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants