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 5
5
7.0.4 (unreleased)
6
6
==================
7
7
8
+ - Fix segmentation faults on Python 3.13.
9
+ (`#323 <https://github.com/zopefoundation/zope.interface/issues/323 >`_)
10
+
8
11
9
12
7.0.3 (2024-08-27)
10
13
==================
Original file line number Diff line number Diff line change 12
12
13
13
14
14
import array
15
+ import sys
15
16
import unittest
16
17
from collections import OrderedDict
17
18
from collections import abc
@@ -100,6 +101,10 @@ def test_UserString(self):
100
101
add_abc_interface_tests (TestVerifyClass , collections .ISet .__module__ )
101
102
102
103
104
+ def _get_FrameLocalsProxy ():
105
+ return type (sys ._getframe ().f_locals )
106
+
107
+
103
108
class TestVerifyObject (VerifyObjectMixin ,
104
109
TestVerifyClass ):
105
110
CONSTRUCTORS = {
@@ -127,6 +132,11 @@ class TestVerifyObject(VerifyObjectMixin,
127
132
'async_generator' : unittest .SkipTest ,
128
133
type (iter (tuple ())): lambda : iter (tuple ()),
129
134
}
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
130
140
131
141
UNVERIFIABLE_RO = {
132
142
# ``array.array`` fails the ``test_auto_ro_*`` tests with and
You can’t perform that action at this time.
0 commit comments