Explorar el Código

Merge pull request #782 from MegaIng/master

Fix tests failing when used with `python -m unittest discover`
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.2
Erez Shinan hace 3 años
committed by GitHub
padre
commit
a6e5af6b80
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      tests/test_parser.py

+ 1
- 1
tests/test_parser.py Ver fichero

@@ -1977,7 +1977,7 @@ def _make_parser_test(LEXER, PARSER):
%import .test_relative_import (start, WS)
%ignore WS
"""
p = _Lark(grammar, import_paths=[custom_loader2])
p = _Lark(grammar, import_paths=[custom_loader2], source_path=__file__) # import relative to current file
x = p.parse('12 capybaras')
self.assertEqual(x.children, ['12', 'capybaras'])



Cargando…
Cancelar
Guardar