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
6a907d8b
Kaydet (Commit)
6a907d8b
authored
Nis 28, 2006
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove a duplicated test (the same test is in test_incomplete.py).
üst
0f45a078
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
test_pointers.py
Lib/ctypes/test/test_pointers.py
+0
-21
No files found.
Lib/ctypes/test/test_pointers.py
Dosyayı görüntüle @
6a907d8b
...
...
@@ -133,27 +133,6 @@ class PointersTestCase(unittest.TestCase):
self
.
failUnlessEqual
(
p
[
0
],
42
)
self
.
failUnlessEqual
(
p
.
contents
.
value
,
42
)
def
test_incomplete
(
self
):
lpcell
=
POINTER
(
"cell"
)
class
cell
(
Structure
):
_fields_
=
[(
"value"
,
c_int
),
(
"next"
,
lpcell
)]
SetPointerType
(
lpcell
,
cell
)
# Make a structure containing a pointer to itself:
c
=
cell
()
c
.
value
=
42
c
.
next
=
pointer
(
c
)
result
=
[]
for
i
in
range
(
8
):
result
.
append
(
c
.
value
)
c
=
c
.
next
[
0
]
self
.
failUnlessEqual
(
result
,
[
42
]
*
8
)
from
ctypes
import
_pointer_type_cache
del
_pointer_type_cache
[
cell
]
def
test_charpp
(
self
):
"""Test that a character pointer-to-pointer is correctly passed"""
dll
=
CDLL
(
_ctypes_test
.
__file__
)
...
...
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