Skip to content

Commit

Permalink
Add preliminary support for Python 3.12b2. (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz authored Jun 19, 2023
1 parent c31c133 commit b82d582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12.0-alpha.7", "py312"]
- ["3.12.0-beta.2", "py312"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
- ["3.9", "py39-datetime"]
Expand Down
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "fe63cb4c"
commit-id = "1814282a"

[python]
with-pypy = false
Expand Down
4 changes: 2 additions & 2 deletions tests/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from RestrictedPython import compile_restricted_single
from RestrictedPython._compat import IS_PY38_OR_GREATER
from RestrictedPython._compat import IS_PY310_OR_GREATER
from RestrictedPython._compat import IS_PY312_OR_GREATER
from RestrictedPython._compat import IS_PY311_OR_GREATER
from tests.helper import restricted_eval


Expand Down Expand Up @@ -103,7 +103,7 @@ def test_compile__compile_restricted_exec__5():
assert result.code is None
assert result.warnings == []
assert result.used_names == {}
if IS_PY312_OR_GREATER:
if IS_PY311_OR_GREATER:
assert result.errors == (
'Line None: SyntaxError: source code string cannot contain null'
' bytes at statement: None',)
Expand Down

0 comments on commit b82d582

Please sign in to comment.