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
f102fc5f
Kaydet (Commit)
f102fc5f
authored
Tem 27, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add test_main() methods. These three tests were never run
by regrtest.py. We really need a simpler testing framework.
üst
9aed98fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
test_defaultdict.py
Lib/test/test_defaultdict.py
+5
-1
test_iterlen.py
Lib/test/test_iterlen.py
+5
-3
test_uuid.py
Lib/test/test_uuid.py
+7
-2
No files found.
Lib/test/test_defaultdict.py
Dosyayı görüntüle @
f102fc5f
...
...
@@ -4,6 +4,7 @@ import os
import
copy
import
tempfile
import
unittest
from
test
import
test_support
from
collections
import
defaultdict
...
...
@@ -131,5 +132,8 @@ class TestDefaultDict(unittest.TestCase):
self
.
assertEqual
(
d2
,
d1
)
def
test_main
():
test_support
.
run_unittest
(
TestDefaultDict
)
if
__name__
==
"__main__"
:
unittest
.
main
()
test_
main
()
Lib/test/test_iterlen.py
Dosyayı görüntüle @
f102fc5f
...
...
@@ -235,9 +235,7 @@ class TestSeqIterReversed(TestInvariantWithoutMutations):
self
.
assertEqual
(
len
(
it
),
0
)
if
__name__
==
"__main__"
:
def
test_main
():
unittests
=
[
TestRepeat
,
TestXrange
,
...
...
@@ -255,3 +253,7 @@ if __name__ == "__main__":
TestSeqIterReversed
,
]
test_support
.
run_unittest
(
*
unittests
)
if
__name__
==
"__main__"
:
test_main
()
Lib/test/test_uuid.py
Dosyayı görüntüle @
f102fc5f
from
unittest
import
TestCase
,
main
from
unittest
import
TestCase
from
test
import
test_support
import
uuid
def
importable
(
name
):
...
...
@@ -392,5 +393,9 @@ class TestUUID(TestCase):
equal
(
u
,
uuid
.
UUID
(
v
))
equal
(
str
(
u
),
v
)
def
test_main
():
test_support
.
run_unittest
(
TestUUID
)
if
__name__
==
'__main__'
:
main
()
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