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
6dd7d07a
Kaydet (Commit)
6dd7d07a
authored
22 years ago
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
If PyXML is installed, there is no Node.allnodes, so that portion of
the test should be skipped if that's the case.
üst
d2909c90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
test_minidom.py
Lib/test/test_minidom.py
+16
-5
No files found.
Lib/test/test_minidom.py
Dosyayı görüntüle @
6dd7d07a
...
...
@@ -618,11 +618,15 @@ names.sort()
failed
=
[]
for
name
in
names
:
if
name
.
startswith
(
"test"
):
func
=
globals
()[
name
]
try
:
func
()
try
:
Node
.
allnodes
except
AttributeError
:
# We don't actually have the minidom from teh standard library,
# but are picking up the PyXML version from site-packages.
def
check_allnodes
():
pass
else
:
def
check_allnodes
():
confirm
(
len
(
Node
.
allnodes
)
==
0
,
"assertion: len(Node.allnodes) == 0"
)
if
len
(
Node
.
allnodes
):
...
...
@@ -634,6 +638,13 @@ for name in names:
# are needed
print
len
(
Node
.
allnodes
)
Node
.
allnodes
=
{}
for
name
in
names
:
if
name
.
startswith
(
"test"
):
func
=
globals
()[
name
]
try
:
func
()
check_allnodes
()
except
:
failed
.
append
(
name
)
print
"Test Failed: "
,
name
...
...
This diff is collapsed.
Click to expand it.
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