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
e1857d99
Kaydet (Commit)
e1857d99
authored
Mar 05, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix indentation.
üst
25a40452
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
test_capi.py
Lib/test/test_capi.py
+4
-4
test_faulthandler.py
Lib/test/test_faulthandler.py
+1
-1
No files found.
Lib/test/test_capi.py
Dosyayı görüntüle @
e1857d99
...
...
@@ -46,10 +46,10 @@ class CAPITest(unittest.TestCase):
def
test_no_FatalError_infinite_loop
(
self
):
with
support
.
suppress_crash_popup
():
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
'import _testcapi;'
'_testcapi.crash_no_current_thread()'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
'import _testcapi;'
'_testcapi.crash_no_current_thread()'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
(
out
,
err
)
=
p
.
communicate
()
self
.
assertEqual
(
out
,
b
''
)
# This used to cause an infinite loop.
...
...
Lib/test/test_faulthandler.py
Dosyayı görüntüle @
e1857d99
...
...
@@ -102,7 +102,7 @@ class FaultHandlerTests(unittest.TestCase):
if
other_regex
:
regex
+=
'|'
+
other_regex
with
support
.
suppress_crash_popup
():
output
,
exitcode
=
self
.
get_output
(
code
,
filename
)
output
,
exitcode
=
self
.
get_output
(
code
,
filename
)
output
=
'
\n
'
.
join
(
output
)
self
.
assertRegex
(
output
,
regex
)
self
.
assertNotEqual
(
exitcode
,
0
)
...
...
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