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
12ee7448
Kaydet (Commit)
12ee7448
authored
Eki 08, 2015
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23919: Prevents assert dialogs appearing in the test suite.
üst
ce88d82e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
regrtest.py
Lib/test/regrtest.py
+11
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
12ee7448
...
...
@@ -511,7 +511,13 @@ def main(tests=None, **kwargs):
import
gc
gc
.
set_threshold
(
ns
.
threshold
)
if
ns
.
nowindows
:
print
(
'The --nowindows (-n) option is deprecated. '
'Use -vv to display assertions in stderr.'
)
try
:
import
msvcrt
except
ImportError
:
pass
else
:
msvcrt
.
SetErrorMode
(
msvcrt
.
SEM_FAILCRITICALERRORS
|
msvcrt
.
SEM_NOALIGNMENTFAULTEXCEPT
|
msvcrt
.
SEM_NOGPFAULTERRORBOX
|
...
...
@@ -523,8 +529,11 @@ def main(tests=None, **kwargs):
pass
else
:
for
m
in
[
msvcrt
.
CRT_WARN
,
msvcrt
.
CRT_ERROR
,
msvcrt
.
CRT_ASSERT
]:
msvcrt
.
CrtSetReportMode
(
m
,
msvcrt
.
CRTDBG_MODE_FILE
)
msvcrt
.
CrtSetReportFile
(
m
,
msvcrt
.
CRTDBG_FILE_STDERR
)
if
ns
.
verbose
and
ns
.
verbose
>=
2
:
msvcrt
.
CrtSetReportMode
(
m
,
msvcrt
.
CRTDBG_MODE_FILE
)
msvcrt
.
CrtSetReportFile
(
m
,
msvcrt
.
CRTDBG_FILE_STDERR
)
else
:
msvcrt
.
CrtSetReportMode
(
m
,
0
)
if
ns
.
wait
:
input
(
"Press any key to continue..."
)
...
...
Misc/NEWS
Dosyayı görüntüle @
12ee7448
...
...
@@ -278,6 +278,8 @@ Documentation
Tests
-----
-
Issue
#
23919
:
Prevents
assert
dialogs
appearing
in
the
test
suite
.
-
PCbuild
\
rt
.
bat
now
accepts
an
unlimited
number
of
arguments
to
pass
along
to
regrtest
.
py
.
Previously
there
was
a
limit
of
9.
...
...
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