Skip to content

Commit b82d582

Browse files
author
Michael Howitz
authored
Add preliminary support for Python 3.12b2. (#254)
1 parent c31c133 commit b82d582

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- ["3.9", "py39"]
2828
- ["3.10", "py310"]
2929
- ["3.11", "py311"]
30-
- ["3.12.0-alpha.7", "py312"]
30+
- ["3.12.0-beta.2", "py312"]
3131
- ["3.9", "docs"]
3232
- ["3.9", "coverage"]
3333
- ["3.9", "py39-datetime"]

.meta.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "fe63cb4c"
5+
commit-id = "1814282a"
66

77
[python]
88
with-pypy = false

tests/test_compile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from RestrictedPython import compile_restricted_single
1111
from RestrictedPython._compat import IS_PY38_OR_GREATER
1212
from RestrictedPython._compat import IS_PY310_OR_GREATER
13-
from RestrictedPython._compat import IS_PY312_OR_GREATER
13+
from RestrictedPython._compat import IS_PY311_OR_GREATER
1414
from tests.helper import restricted_eval
1515

1616

@@ -103,7 +103,7 @@ def test_compile__compile_restricted_exec__5():
103103
assert result.code is None
104104
assert result.warnings == []
105105
assert result.used_names == {}
106-
if IS_PY312_OR_GREATER:
106+
if IS_PY311_OR_GREATER:
107107
assert result.errors == (
108108
'Line None: SyntaxError: source code string cannot contain null'
109109
' bytes at statement: None',)

0 commit comments

Comments
 (0)