alex / rply

An attempt to port David Beazley's PLY to RPython, and give it a cooler API.
BSD 3-Clause "New" or "Revised" License
381 stars 60 forks source link

Replace py with pytest #116

Open bnavigator opened 1 year ago

bnavigator commented 1 year ago

Py is deprecated

kloczek commented 5 months ago

I've tested this PR and looks like ItWorks™️

+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/tkloczko/rpmbuild/BUILD/rply-0.7.8
collected 51 items

tests/test_both.py .                                                     [  1%]
tests/test_lexer.py ..........                                           [ 21%]
tests/test_parser.py ..........                                          [ 41%]
tests/test_parsergenerator.py ........                                   [ 56%]
tests/test_tokens.py .....                                               [ 66%]
tests/test_utils.py .....                                                [ 76%]
tests/test_warnings.py ....                                              [ 84%]
tests/test_ztranslation.py ssssssss                                      [100%]

=========================== short test summary info ============================
SKIPPED [8] tests/test_ztranslation.py: Needs RPython to be on the PYTHONPATH
======================== 43 passed, 8 skipped in 0.17s =========================