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
5bad5a4b
Kaydet (Commit)
5bad5a4b
authored
Eki 13, 2000
tarafından
Lars Gustäbel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated test suite to latest pulldom changes.
üst
ec964d5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
test_minidom
Lib/test/output/test_minidom
+4
-4
test_minidom.py
Lib/test/test_minidom.py
+15
-15
No files found.
Lib/test/output/test_minidom
Dosyayı görüntüle @
5bad5a4b
...
...
@@ -110,10 +110,6 @@ Test Succeeded testHasChildNodes
Passed assertion: len(Node.allnodes) == 0
Test Succeeded testInsertBefore
Passed assertion: len(Node.allnodes) == 0
Passed testNonNSElements - siblings
Passed testNonNSElements - parents
Test Succeeded testNonNSElements
Passed assertion: len(Node.allnodes) == 0
Passed Test
Passed Test
Test Succeeded testNonZero
...
...
@@ -154,6 +150,10 @@ Passed Test
Passed Test
Test Succeeded testRemoveAttributeNode
Passed assertion: len(Node.allnodes) == 0
Passed testSAX2DOM - siblings
Passed testSAX2DOM - parents
Test Succeeded testSAX2DOM
Passed assertion: len(Node.allnodes) == 0
Test Succeeded testSetAttrValueandNodeValue
Passed assertion: len(Node.allnodes) == 0
Passed testSiblings
...
...
Lib/test/test_minidom.py
Dosyayı görüntüle @
5bad5a4b
...
...
@@ -337,21 +337,21 @@ def testParents():
doc
.
unlink
()
def
test
NonNSElements
():
def
test
SAX2DOM
():
from
xml.dom
import
pulldom
pulldom
=
pulldom
.
Pull
DOM
()
pull
dom
.
startDocument
()
pull
dom
.
startElement
(
"doc"
,
{})
pull
dom
.
characters
(
"text"
)
pull
dom
.
startElement
(
"subelm"
,
{})
pull
dom
.
characters
(
"text"
)
pull
dom
.
endElement
(
"subelm"
)
pull
dom
.
characters
(
"text"
)
pull
dom
.
endElement
(
"doc"
)
pull
dom
.
endDocument
()
doc
=
pull
dom
.
document
sax2dom
=
pulldom
.
SAX2
DOM
()
sax2
dom
.
startDocument
()
sax2
dom
.
startElement
(
"doc"
,
{})
sax2
dom
.
characters
(
"text"
)
sax2
dom
.
startElement
(
"subelm"
,
{})
sax2
dom
.
characters
(
"text"
)
sax2
dom
.
endElement
(
"subelm"
)
sax2
dom
.
characters
(
"text"
)
sax2
dom
.
endElement
(
"doc"
)
sax2
dom
.
endDocument
()
doc
=
sax2
dom
.
document
root
=
doc
.
documentElement
(
text1
,
elm1
,
text2
)
=
root
.
childNodes
text3
=
elm1
.
childNodes
[
0
]
...
...
@@ -363,13 +363,13 @@ def testNonNSElements():
text2
.
previousSibling
is
elm1
and
text2
.
nextSibling
is
None
and
text3
.
previousSibling
is
None
and
text3
.
nextSibling
is
None
,
"test
NonNSElements
- siblings"
)
text3
.
nextSibling
is
None
,
"test
SAX2DOM
- siblings"
)
confirm
(
root
.
parentNode
is
doc
and
text1
.
parentNode
is
root
and
elm1
.
parentNode
is
root
and
text2
.
parentNode
is
root
and
text3
.
parentNode
is
elm1
,
"test
NonNSElements
- parents"
)
text3
.
parentNode
is
elm1
,
"test
SAX2DOM
- parents"
)
doc
.
unlink
()
...
...
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