Skip to content

Commit

Permalink
Start adding support for testing with Python 3.13 JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed Mar 25, 2024
1 parent 3ea9031 commit 55e57c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -22,6 +22,8 @@ Version 3.1.3 - in development
- Some type annotations added for parse action related methods, thanks August
Karlstedt (#551).

- Added early testing support for Python 3.13 with JIT enabled.


Version 3.1.2 - March, 2024
---------------------------
Expand Down
13 changes: 10 additions & 3 deletions tests/test_unit.py
Expand Up @@ -11,7 +11,9 @@
import datetime
import random
import re
import shlex
import sys
import sysconfig
import warnings
from types import SimpleNamespace
from io import StringIO
Expand Down Expand Up @@ -146,9 +148,14 @@ def runTest(self):
pp.__version__,
pp.__version_time__,
)
print("Python version", sys.version)
print("__version_info__ :", pp.__version_info__)
print("__version_info__ repr:", repr(pp.__version_info__))
python_jit_enabled = "--enable-experimental-jit" in shlex.split(
sysconfig.get_config_vars().get("CONFIG_ARGS", "")
)
print(
f"Python version {sys.version} {'(JIT enabled)' if python_jit_enabled else ''}"
)
print(f"__version_info__ : {pp.__version_info__}")
print(f"__version_info__ repr: {repr(pp.__version_info__)}")


class Test01a_PyparsingEnvironmentTests(TestCase):
Expand Down

0 comments on commit 55e57c5

Please sign in to comment.