Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ca9652ea
Kaydet (Commit)
ca9652ea
authored
Tem 20, 2012
tarafından
Meador Inge
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15406: Fix deprecation warning in ctypes test_bitfields.py
Patch by Flávio Ribeiro.
üst
ddcb6206
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
test_bitfields.py
Lib/ctypes/test/test_bitfields.py
+4
-4
ACKS
Misc/ACKS
+1
-0
No files found.
Lib/ctypes/test/test_bitfields.py
Dosyayı görüntüle @
ca9652ea
...
@@ -246,9 +246,9 @@ class BitFieldTest(unittest.TestCase):
...
@@ -246,9 +246,9 @@ class BitFieldTest(unittest.TestCase):
_fields_
=
[(
"a"
,
c_uint32
,
32
)]
_fields_
=
[(
"a"
,
c_uint32
,
32
)]
x
=
X
()
x
=
X
()
x
.
a
=
10
x
.
a
=
10
self
.
assertEqual
s
(
x
.
a
,
10
)
self
.
assertEqual
(
x
.
a
,
10
)
x
.
a
=
0xFDCBA987
x
.
a
=
0xFDCBA987
self
.
assertEqual
s
(
x
.
a
,
0xFDCBA987
)
self
.
assertEqual
(
x
.
a
,
0xFDCBA987
)
@unittest.skipUnless
(
hasattr
(
ctypes
,
"c_uint64"
),
"c_int64 is required"
)
@unittest.skipUnless
(
hasattr
(
ctypes
,
"c_uint64"
),
"c_int64 is required"
)
def
test_uint64
(
self
):
def
test_uint64
(
self
):
...
@@ -256,9 +256,9 @@ class BitFieldTest(unittest.TestCase):
...
@@ -256,9 +256,9 @@ class BitFieldTest(unittest.TestCase):
_fields_
=
[(
"a"
,
c_uint64
,
64
)]
_fields_
=
[(
"a"
,
c_uint64
,
64
)]
x
=
X
()
x
=
X
()
x
.
a
=
10
x
.
a
=
10
self
.
assertEqual
s
(
x
.
a
,
10
)
self
.
assertEqual
(
x
.
a
,
10
)
x
.
a
=
0xFEDCBA9876543211
x
.
a
=
0xFEDCBA9876543211
self
.
assertEqual
s
(
x
.
a
,
0xFEDCBA9876543211
)
self
.
assertEqual
(
x
.
a
,
0xFEDCBA9876543211
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
Misc/ACKS
Dosyayı görüntüle @
ca9652ea
...
@@ -778,6 +778,7 @@ Michael P. Reilly
...
@@ -778,6 +778,7 @@ Michael P. Reilly
Bernhard Reiter
Bernhard Reiter
Steven Reiz
Steven Reiz
Roeland Rengelink
Roeland Rengelink
Flávio Ribeiro
Tim Rice
Tim Rice
Francesco Ricciardi
Francesco Ricciardi
Jan Pieter Riegel
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