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
fe4b0d2e
Commit
fe4b0d2e
authored
Jul 20, 2012
by
Meador Inge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #15406: Fix deprecation warning in ctypes test_bitfields.py
Patch by Flávio Ribeiro.
parent
53b40487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Lib/ctypes/test/test_bitfields.py
Lib/ctypes/test/test_bitfields.py
+4
-4
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/ctypes/test/test_bitfields.py
View file @
fe4b0d2e
...
...
@@ -246,9 +246,9 @@ class BitFieldTest(unittest.TestCase):
_fields_
=
[(
"a"
,
c_uint32
,
32
)]
x
=
X
()
x
.
a
=
10
self
.
assertEqual
s
(
x
.
a
,
10
)
self
.
assertEqual
(
x
.
a
,
10
)
x
.
a
=
0xFDCBA987
self
.
assertEqual
s
(
x
.
a
,
0xFDCBA987
)
self
.
assertEqual
(
x
.
a
,
0xFDCBA987
)
@
unittest
.
skipUnless
(
hasattr
(
ctypes
,
"c_uint64"
),
"c_int64 is required"
)
def
test_uint64
(
self
):
...
...
@@ -256,9 +256,9 @@ class BitFieldTest(unittest.TestCase):
_fields_
=
[(
"a"
,
c_uint64
,
64
)]
x
=
X
()
x
.
a
=
10
self
.
assertEqual
s
(
x
.
a
,
10
)
self
.
assertEqual
(
x
.
a
,
10
)
x
.
a
=
0xFEDCBA9876543211
self
.
assertEqual
s
(
x
.
a
,
0xFEDCBA9876543211
)
self
.
assertEqual
(
x
.
a
,
0xFEDCBA9876543211
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Misc/ACKS
View file @
fe4b0d2e
...
...
@@ -778,6 +778,7 @@ Michael P. Reilly
Bernhard Reiter
Steven Reiz
Roeland Rengelink
Flávio Ribeiro
Tim Rice
Francesco Ricciardi
Jan Pieter Riegel
...
...
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