Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
01b07cdb
Commit
01b07cdb
authored
Jun 12, 2008
by
Alexandre Vassalotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test_sys failure due to removal of the unused slots
in PyNumberMethods.
parent
ccc63b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Lib/test/test_sys.py
Lib/test/test_sys.py
+10
-5
No files found.
Lib/test/test_sys.py
View file @
01b07cdb
...
@@ -471,11 +471,16 @@ class SizeofTest(unittest.TestCase):
...
@@ -471,11 +471,16 @@ class SizeofTest(unittest.TestCase):
pass
pass
# type (PyTypeObject + PyNumberMethods + PyMappingMethods +
# type (PyTypeObject + PyNumberMethods + PyMappingMethods +
# PySequenceMethods + PyBufferProcs)
# PySequenceMethods + PyBufferProcs)
self
.
check_sizeof
(
class_newstyle
,
h
+
\
self
.
check_sizeof
(
class_newstyle
,
h
+
p
+
2
*
l
+
15
*
p
+
l
+
4
*
p
+
l
+
9
*
p
+
l
+
11
*
p
+
\
# PyTypeObject
self
.
align
(
4
)
+
\
p
+
2
*
l
+
15
*
p
+
l
+
4
*
p
+
l
+
9
*
p
+
l
+
11
*
p
+
16
*
p
+
self
.
align
(
i
)
+
20
*
p
+
\
self
.
align
(
4
)
+
10
*
p
+
3
*
p
+
2
*
p
+
2
*
p
);
# PyNumberMethods
16
*
p
+
self
.
align
(
i
)
+
17
*
p
+
3
*
p
+
# PyMappingMethods
10
*
p
+
# PySequenceMethods
2
*
p
+
# PyBufferProcs
2
*
p
)
# *ht_name and *ht_slots
def
test_specialtypes
(
self
):
def
test_specialtypes
(
self
):
i
=
self
.
i
i
=
self
.
i
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment