Skip to content

Commit

Permalink
- fix segmentation fault and FrameLocalsProxy check
Browse files Browse the repository at this point in the history
dataflake committed Oct 3, 2024
1 parent 6ffccef commit abc32e4
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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)
==================
9 changes: 9 additions & 0 deletions src/zope/interface/common/tests/test_collections.py
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@


import array
import sys
import unittest
from collections import OrderedDict
from collections import abc
@@ -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])
CONSTRUCTORS[FrameLocalsProxy] = FrameLocalsProxy_constructor

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

0 comments on commit abc32e4

Please sign in to comment.