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
98e3df38
Kaydet (Commit)
98e3df38
authored
Ara 16, 2009
tarafından
R. David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7396: fix -s, which was broken by the -j enhancement.
üst
0c0dcaf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
regrtest.py
Lib/test/regrtest.py
+9
-11
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
98e3df38
...
...
@@ -406,9 +406,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
stdtests
.
remove
(
arg
)
nottests
[:
0
]
=
args
args
=
[]
tests
=
tests
or
args
or
findtests
(
testdir
,
stdtests
,
nottests
)
alltests
=
findtests
(
testdir
,
stdtests
,
nottests
)
tests
=
tests
or
args
or
alltests
if
single
:
tests
=
tests
[:
1
]
try
:
next_single_test
=
alltests
[
alltests
.
index
(
tests
[
0
])
+
1
]
except
IndexError
:
next_single_test
=
None
if
randomize
:
random
.
seed
(
random_seed
)
print
"Using random seed"
,
random_seed
...
...
@@ -613,16 +618,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
raise
if
single
:
alltests
=
findtests
(
testdir
,
stdtests
,
nottests
)
for
i
in
range
(
len
(
alltests
)):
if
tests
[
0
]
==
alltests
[
i
]:
if
i
==
len
(
alltests
)
-
1
:
os
.
unlink
(
filename
)
else
:
fp
=
open
(
filename
,
'w'
)
fp
.
write
(
alltests
[
i
+
1
]
+
'
\n
'
)
fp
.
close
()
break
if
next_single_test
:
with
open
(
filename
,
'w'
)
as
fp
:
fp
.
write
(
next_single_test
+
'
\n
'
)
else
:
os
.
unlink
(
filename
)
...
...
Misc/NEWS
Dosyayı görüntüle @
98e3df38
...
...
@@ -46,6 +46,8 @@ Library
Tests
-----
- Issue #7396: fix regrtest -s, which was broken by the -j enhancement.
- Issue #7498: test_multiprocessing now uses test_support.find_unused_port
instead of a hardcoded port number in test_rapid_restart.
...
...
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