Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segmentation fault and FrameLocalsProxy check #328

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
7.0.4 (unreleased)
==================

- Fix segmentation faults on Python 3.13.
(`#323 <https://github.com/zopefoundation/zope.interface/issues/323>`_)


7.0.3 (2024-08-27)
==================
Expand Down
9 changes: 9 additions & 0 deletions src/zope/interface/common/tests/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


import array
import sys
import unittest
from collections import OrderedDict
from collections import abc
Expand Down Expand Up @@ -127,6 +128,14 @@ class TestVerifyObject(VerifyObjectMixin,
'async_generator': unittest.SkipTest,
type(iter(tuple())): lambda: iter(tuple()),
}
if sys.version_info >= (3, 13):
def FrameLocalsProxy_constructor():
FrameLocalsProxy = type([sys._getframe().f_locals for x in
range(1)][0])
return FrameLocalsProxy(sys._getframe())
FrameLocalsProxy = type([sys._getframe().f_locals for x in
range(1)][0])
dataflake marked this conversation as resolved.
Show resolved Hide resolved
CONSTRUCTORS[FrameLocalsProxy] = FrameLocalsProxy_constructor

UNVERIFIABLE_RO = {
# ``array.array`` fails the ``test_auto_ro_*`` tests with and
Expand Down
Loading