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
20822680
Kaydet (Commit)
20822680
authored
May 31, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8407: test_signal doesn't check signal delivery order
Tthe signal delivery order is not portable or reliable.
üst
e2655974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
test_signal.py
Lib/test/test_signal.py
+6
-5
No files found.
Lib/test/test_signal.py
Dosyayı görüntüle @
20822680
...
...
@@ -229,12 +229,13 @@ class WakeupSignalTests(unittest.TestCase):
def
handler
(
self
,
signum
,
frame
):
pass
def
check_signum
(
self
,
*
signals
,
**
kw
):
def
check_signum
(
self
,
*
signals
):
data
=
os
.
read
(
self
.
read
,
len
(
signals
)
+
1
)
raised
=
struct
.
unpack
(
'
%
uB'
%
len
(
data
),
data
)
if
kw
.
get
(
'unordered'
,
False
):
raised
=
set
(
raised
)
signals
=
set
(
signals
)
# We don't care of the signal delivery order (it's not portable or
# reliable)
raised
=
set
(
raised
)
signals
=
set
(
signals
)
self
.
assertEqual
(
raised
,
signals
)
def
test_wakeup_fd_early
(
self
):
...
...
@@ -291,7 +292,7 @@ class WakeupSignalTests(unittest.TestCase):
# Unblocking the 2 signals calls the C signal handler twice
signal
.
pthread_sigmask
(
signal
.
SIG_UNBLOCK
,
(
signum1
,
signum2
))
self
.
check_signum
(
signum1
,
signum2
,
unordered
=
True
)
self
.
check_signum
(
signum1
,
signum2
)
def
setUp
(
self
):
import
fcntl
...
...
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