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
292f9a89
Kaydet (Commit)
292f9a89
authored
Şub 16, 2012
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make TestAccelerator[Not]Imported for ElementTree more robust
üst
66e6f8e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
test_xml_etree.py
Lib/test/test_xml_etree.py
+1
-3
test_xml_etree_c.py
Lib/test/test_xml_etree_c.py
+2
-6
No files found.
Lib/test/test_xml_etree.py
Dosyayı görüntüle @
292f9a89
...
...
@@ -1907,9 +1907,7 @@ class CleanContext(object):
class
TestAcceleratorNotImported
(
unittest
.
TestCase
):
# Test that the C accelerator was not imported for pyET
def
test_correct_import_pyET
(
self
):
# In the C accelerator, Element is just a factory function, not an
# actual class. In the Python version it's a class.
self
.
assertIsInstance
(
pyET
.
Element
,
type
)
self
.
assertEqual
(
pyET
.
Element
.
__module__
,
'xml.etree.ElementTree'
)
def
test_main
(
module
=
pyET
):
...
...
Lib/test/test_xml_etree_c.py
Dosyayı görüntüle @
292f9a89
...
...
@@ -46,15 +46,11 @@ class MiscTests(unittest.TestCase):
finally
:
data
=
None
@unittest.skipUnless
(
cET
,
'requires _elementtree'
)
class
TestAcceleratorImported
(
unittest
.
TestCase
):
# Test that the C accelerator was imported, as expected
def
test_correct_import_cET
(
self
):
# In the C accelerator, Element is just a factory function, not an
# actual class. In the Python version it's a class.
self
.
assertNotIsInstance
(
cET
.
Element
,
type
)
#def test_correct_import_cET_alias(self):
#self.assertNotIsInstance(cET_alias.Element, type)
self
.
assertEqual
(
cET
.
Element
.
__module__
,
'_elementtree'
)
def
test_main
():
...
...
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