Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
ef92ed53
Kaydet (Commit)
ef92ed53
authored
Agu 02, 2016
tarafından
Chris Jerdonek
Kaydeden (comit)
Tim Graham
Agu 02, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26980 -- Added ParallelTestSuite.runner_class to aid subclassing.
üst
54afa960
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
runner.py
django/test/runner.py
+4
-3
No files found.
django/test/runner.py
Dosyayı görüntüle @
ef92ed53
...
...
@@ -257,8 +257,8 @@ def _run_subsuite(args):
This helper lives at module-level and its arguments are wrapped in a tuple
because of the multiprocessing module's requirements.
"""
subsuite_index
,
subsuite
,
failfast
=
args
runner
=
RemoteTestRunner
(
failfast
=
failfast
)
runner_class
,
subsuite_index
,
subsuite
,
failfast
=
args
runner
=
runner_class
(
failfast
=
failfast
)
result
=
runner
.
run
(
subsuite
)
return
subsuite_index
,
result
.
events
...
...
@@ -282,6 +282,7 @@ class ParallelTestSuite(unittest.TestSuite):
# In case someone wants to modify these in a subclass.
init_worker
=
_init_worker
run_subsuite
=
_run_subsuite
runner_class
=
RemoteTestRunner
def
__init__
(
self
,
suite
,
processes
,
failfast
=
False
):
self
.
subsuites
=
partition_suite_by_case
(
suite
)
...
...
@@ -313,7 +314,7 @@ class ParallelTestSuite(unittest.TestSuite):
initializer
=
self
.
init_worker
.
__func__
,
initargs
=
[
counter
])
args
=
[
(
index
,
subsuite
,
self
.
failfast
)
(
self
.
runner_class
,
index
,
subsuite
,
self
.
failfast
)
for
index
,
subsuite
in
enumerate
(
self
.
subsuites
)
]
test_results
=
pool
.
imap_unordered
(
self
.
run_subsuite
.
__func__
,
args
)
...
...
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