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
722e2489
Kaydet (Commit)
722e2489
authored
Mar 27, 2014
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
üst
da39645a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
__init__.py
Lib/test/test_asyncio/__init__.py
+10
-12
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_asyncio/__init__.py
Dosyayı görüntüle @
722e2489
...
@@ -10,20 +10,18 @@ import_module('concurrent.futures')
...
@@ -10,20 +10,18 @@ import_module('concurrent.futures')
def
suite
():
def
suite
():
tests_file
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'tests.txt'
)
with
open
(
tests_file
)
as
fp
:
test_names
=
fp
.
read
()
.
splitlines
()
tests
=
unittest
.
TestSuite
()
tests
=
unittest
.
TestSuite
()
loader
=
unittest
.
TestLoader
()
loader
=
unittest
.
TestLoader
()
for
test_name
in
test_names
:
for
fn
in
os
.
listdir
(
os
.
path
.
dirname
(
__file__
)):
mod_name
=
'test.'
+
test_name
if
fn
.
startswith
(
"test"
)
and
fn
.
endswith
(
".py"
):
try
:
mod_name
=
'test.test_asyncio.'
+
fn
[:
-
3
]
__import__
(
mod_name
)
try
:
except
unittest
.
SkipTest
:
__import__
(
mod_name
)
pass
except
unittest
.
SkipTest
:
else
:
pass
mod
=
sys
.
modules
[
mod_name
]
else
:
tests
.
addTests
(
loader
.
loadTestsFromModule
(
mod
))
mod
=
sys
.
modules
[
mod_name
]
tests
.
addTests
(
loader
.
loadTestsFromModule
(
mod
))
return
tests
return
tests
...
...
Misc/NEWS
Dosyayı görüntüle @
722e2489
...
@@ -135,6 +135,9 @@ Tests
...
@@ -135,6 +135,9 @@ Tests
redirect of http://www.python.org/ to https://www.python.org:
redirect of http://www.python.org/ to https://www.python.org:
use http://www.example.com instead.
use http://www.example.com instead.
- Issue #20668: asyncio tests no longer rely on tests.txt file.
(Patch by Vajrasky Kok)
Tools/Demos
Tools/Demos
-----------
-----------
...
...
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