File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/zope/interface/common/tests Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 557.0.4 (unreleased)
66==================
77
8+ - Fix segmentation faults on Python 3.13.
9+ (`#323 <https://github.com/zopefoundation/zope.interface/issues/323 >`_)
10+
811
9127.0.3 (2024-08-27)
1013==================
Original file line number Diff line number Diff line change 1212
1313
1414import array
15+ import sys
1516import unittest
1617from collections import OrderedDict
1718from collections import abc
@@ -100,6 +101,10 @@ def test_UserString(self):
100101add_abc_interface_tests (TestVerifyClass , collections .ISet .__module__ )
101102
102103
104+ def _get_FrameLocalsProxy ():
105+ return type (sys ._getframe ().f_locals )
106+
107+
103108class TestVerifyObject (VerifyObjectMixin ,
104109 TestVerifyClass ):
105110 CONSTRUCTORS = {
@@ -127,6 +132,11 @@ class TestVerifyObject(VerifyObjectMixin,
127132 'async_generator' : unittest .SkipTest ,
128133 type (iter (tuple ())): lambda : iter (tuple ()),
129134 }
135+ if sys .version_info >= (3 , 13 ):
136+ def FrameLocalsProxy_constructor ():
137+ return _get_FrameLocalsProxy ()(sys ._getframe ())
138+ FrameLocalsProxy = _get_FrameLocalsProxy ()
139+ CONSTRUCTORS [FrameLocalsProxy ] = FrameLocalsProxy_constructor
130140
131141 UNVERIFIABLE_RO = {
132142 # ``array.array`` fails the ``test_auto_ro_*`` tests with and
You can’t perform that action at this time.
0 commit comments