Read about our upcoming Code of Conduct on this issue

pyparser: add the ability to clear type_ignore cache

It seems like compile() command preserves the parser since it uses
the same execution context on the same session, so if you parse again
and again the number of type_ignores in the parser object grows.

--HG--
branch : py3.8-isidentical-ast-feature-version
2 jobs for branch/py3.8-isidentical-ast-feature-version in 14 minutes and 13 seconds (queued for 3 seconds)
latest
Status Name Job ID Coverage
  Test
passed check_rpython_annotations #229322

00:07:18

failed hpy_tests #229323

00:14:13

 
Name Stage Failure
failed
hpy_tests Test
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsUnsignedLongMask[universal]
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsUnsignedLongMask[debug]
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsLongLong[universal]
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsLongLong[debug]
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsUnsignedLongLongMask[universal]
FAIL pypy/module/_hpy_universal/test/_vendored/test_hpylong.py::AppTestLong::()::test_Long_AsUnsignedLongLongMask[debug]
============== 8 failed, 394 passed, 6 skipped in 823.45 seconds ===============
Cleaning up file based variables
ERROR: Job failed: exit code 1