From e8a9ed527215697b2337ca86500fb1325873143a Mon Sep 17 00:00:00 2001 From: Paul McGuire Date: Thu, 5 Aug 2021 02:26:43 -0500 Subject: Add testing pass with Pyjion enabled --- tests/test_unit.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_unit.py b/tests/test_unit.py index 09ad6a4..9f773d5 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -6572,6 +6572,7 @@ class Test2_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase): data, [["A", [100, 101, 102]], ["B", [["b", [200, 201]]]], ["C", [300]]], ) + print("searchString test complete") def testInvalidDiagSetting(self): with self.assertRaises( @@ -8067,6 +8068,22 @@ class Test8_WithUnboundedPackrat(Test2_WithoutPackrat): ) +class Test2a_WithPyjion(Test2_WithoutPackrat): + """ + rerun Test2 tests, using pyjion JIT + """ + + def test000_enable_pyjion(self): + # test pyjion compatibility + try: + import pyjion + except ImportError: + pyjion = None + else: + print("Pyjion enabled (version {})".format(pyjion.__version__)) + pyjion.enable() + + # force clear of packrat parsing flags before saving contexts pp.ParserElement._packratEnabled = False pp.ParserElement._parse = pp.ParserElement._parseNoCache -- cgit v1.2.1