Overall, I am impressed with this package and look forward to using in mathicsscript.
However on Python 3.7 and later, running pytest give:
py.test
====================================== test session starts ======================================
platform linux -- Python 3.7.9, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /src/external-vcs/github/rocky/pygments-mathematica
plugins: trepan-3.0.0
collected 26 items
tests/test_lexer.py .......................... [100%]
======================================= warnings summary ========================================
../../../../../home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/nose/importer.py:12
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from imp import find_module, load_module, acquire_lock, release_lock
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 33
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 90
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 163
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 220
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 289
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 346
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 420
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 477
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 34
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 91
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 160
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 217
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 43
return re.compile(regex, rflags).match
tests/test_lexer.py::TestMathematicaLexer::test_comments
/home/rocky/.pyenv/versions/3.7.9/lib/python3.7/site-packages/pygments/lexer.py:425: FutureWarning: Possible nested set at position 100
return re.compile(regex, rflags).match
-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================ 26 passed, 15 warnings in 0.55s ================================
I will be putting in a PR to address this soon. As best as I can tell it is just adding a \ somehwere.
Overall, I am impressed with this package and look forward to using in mathicsscript.
However on Python 3.7 and later, running
pytest
give:I will be putting in a PR to address this soon. As best as I can tell it is just adding a
\
somehwere.