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
b531bef9
Kaydet (Commit)
b531bef9
authored
Agu 19, 2008
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix and enable a test that now works.
üst
039cba1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_frombuffer.py
Lib/ctypes/test/test_frombuffer.py
+3
-3
No files found.
Lib/ctypes/test/test_frombuffer.py
Dosyayı görüntüle @
b531bef9
...
@@ -43,7 +43,7 @@ class Test(unittest.TestCase):
...
@@ -43,7 +43,7 @@ class Test(unittest.TestCase):
self
.
assertRaises
(
ValueError
,
lambda
:
(
c_int
*
16
)
.
from_buffer
(
a
,
sizeof
(
c_int
)))
self
.
assertRaises
(
ValueError
,
lambda
:
(
c_int
*
16
)
.
from_buffer
(
a
,
sizeof
(
c_int
)))
self
.
assertRaises
(
ValueError
,
lambda
:
(
c_int
*
1
)
.
from_buffer
(
a
,
16
*
sizeof
(
c_int
)))
self
.
assertRaises
(
ValueError
,
lambda
:
(
c_int
*
1
)
.
from_buffer
(
a
,
16
*
sizeof
(
c_int
)))
def
BROKEN_
test_from_buffer_copy
(
self
):
def
test_from_buffer_copy
(
self
):
a
=
array
.
array
(
"i"
,
range
(
16
))
a
=
array
.
array
(
"i"
,
range
(
16
))
x
=
(
c_int
*
16
)
.
from_buffer_copy
(
a
)
x
=
(
c_int
*
16
)
.
from_buffer_copy
(
a
)
...
@@ -64,8 +64,8 @@ class Test(unittest.TestCase):
...
@@ -64,8 +64,8 @@ class Test(unittest.TestCase):
del
a
;
gc
.
collect
();
gc
.
collect
();
gc
.
collect
()
del
a
;
gc
.
collect
();
gc
.
collect
();
gc
.
collect
()
self
.
assertEqual
(
x
[:],
list
(
range
(
16
)))
self
.
assertEqual
(
x
[:],
list
(
range
(
16
)))
x
=
(
c_char
*
16
)
.
from_buffer_copy
(
"a"
*
16
)
x
=
(
c_char
*
16
)
.
from_buffer_copy
(
b
"a"
*
16
)
self
.
assertEqual
(
x
[:],
"a"
*
16
)
self
.
assertEqual
(
x
[:],
b
"a"
*
16
)
def
test_fom_buffer_copy_with_offset
(
self
):
def
test_fom_buffer_copy_with_offset
(
self
):
a
=
array
.
array
(
"i"
,
range
(
16
))
a
=
array
.
array
(
"i"
,
range
(
16
))
...
...
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