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
fd93f37f
Kaydet (Commit)
fd93f37f
authored
Haz 30, 2017
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Haz 30, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30448: Fix support.SuppressCrashReport on macOS (#2515)
Add missing "import subprocess".
üst
311ae46e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__init__.py
Lib/test/support/__init__.py
+2
-2
No files found.
Lib/test/support/__init__.py
Dosyayı görüntüle @
fd93f37f
...
@@ -1916,13 +1916,13 @@ class SuppressCrashReport:
...
@@ -1916,13 +1916,13 @@ class SuppressCrashReport:
#
#
# This assumes that this context manager is used in tests
# This assumes that this context manager is used in tests
# that might trigger the next manager.
# that might trigger the next manager.
import
subprocess
cmd
=
[
'/usr/bin/defaults'
,
'read'
,
cmd
=
[
'/usr/bin/defaults'
,
'read'
,
'com.apple.CrashReporter'
,
'DialogType'
]
'com.apple.CrashReporter'
,
'DialogType'
]
proc
=
subprocess
.
Popen
(
cmd
,
proc
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stderr
=
subprocess
.
PIPE
)
with
proc
:
stdout
=
proc
.
communicate
()[
0
]
stdout
=
proc
.
communicate
()[
0
]
if
stdout
.
strip
()
==
b
'developer'
:
if
stdout
.
strip
()
==
b
'developer'
:
sys
.
stdout
.
write
(
"this test triggers the Crash Reporter, "
sys
.
stdout
.
write
(
"this test triggers the Crash Reporter, "
"that is intentional"
)
"that is intentional"
)
...
...
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