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
00abf385
Kaydet (Commit)
00abf385
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
223082fc
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 @
00abf385
...
...
@@ -10,20 +10,18 @@ import_module('concurrent.futures')
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
()
loader
=
unittest
.
TestLoader
()
for
test_name
in
test_names
:
mod_name
=
'test.'
+
test_name
try
:
__import__
(
mod_name
)
except
unittest
.
SkipTest
:
pass
else
:
mod
=
sys
.
modules
[
mod_name
]
tests
.
addTests
(
loader
.
loadTestsFromModule
(
mod
))
for
fn
in
os
.
listdir
(
os
.
path
.
dirname
(
__file__
)):
if
fn
.
startswith
(
"test"
)
and
fn
.
endswith
(
".py"
):
mod_name
=
'test.test_asyncio.'
+
fn
[:
-
3
]
try
:
__import__
(
mod_name
)
except
unittest
.
SkipTest
:
pass
else
:
mod
=
sys
.
modules
[
mod_name
]
tests
.
addTests
(
loader
.
loadTestsFromModule
(
mod
))
return
tests
...
...
Misc/NEWS
Dosyayı görüntüle @
00abf385
...
...
@@ -107,6 +107,9 @@ Tests
redirect
of
http
://
www
.
python
.
org
/
to
https
://
www
.
python
.
org
:
use
http
://
www
.
example
.
com
instead
.
-
Issue
#
20668
:
asyncio
tests
no
longer
rely
on
tests
.
txt
file
.
(
Patch
by
Vajrasky
Kok
)
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