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
7f485785
Kaydet (Commit)
7f485785
authored
Haz 25, 2011
tarafından
Ross Lagerwall
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_signal on Windows after #12303.
üst
04e1012e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test_signal.py
Lib/test/test_signal.py
+6
-6
No files found.
Lib/test/test_signal.py
Dosyayı görüntüle @
7f485785
...
@@ -611,7 +611,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -611,7 +611,7 @@ class PendingSignalsTests(unittest.TestCase):
@unittest.skipUnless
(
hasattr
(
signal
,
'pthread_sigmask'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'pthread_sigmask'
),
'need signal.pthread_sigmask()'
)
'need signal.pthread_sigmask()'
)
@unittest.skipUnless
(
hasattr
(
os
,
'fork'
),
'need os.fork()'
)
@unittest.skipUnless
(
hasattr
(
os
,
'fork'
),
'need os.fork()'
)
def
wait_helper
(
self
,
test
,
handler
,
blocked
=
signal
.
SIGALRM
):
def
wait_helper
(
self
,
test
,
handler
,
blocked
):
signum
=
signal
.
SIGALRM
signum
=
signal
.
SIGALRM
# sig*wait* must be called with the signal blocked: since the current
# sig*wait* must be called with the signal blocked: since the current
...
@@ -651,7 +651,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -651,7 +651,7 @@ class PendingSignalsTests(unittest.TestCase):
signal
.
alarm
(
1
)
signal
.
alarm
(
1
)
self
.
assertEqual
(
signum
,
signal
.
sigwait
([
signum
]))
self
.
assertEqual
(
signum
,
signal
.
sigwait
([
signum
]))
self
.
wait_helper
(
test
,
self
.
handler
)
self
.
wait_helper
(
test
,
self
.
handler
,
signal
.
SIGALRM
)
@unittest.skipUnless
(
hasattr
(
signal
,
'sigwaitinfo'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'sigwaitinfo'
),
'need signal.sigwaitinfo()'
)
'need signal.sigwaitinfo()'
)
...
@@ -661,7 +661,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -661,7 +661,7 @@ class PendingSignalsTests(unittest.TestCase):
info
=
signal
.
sigwaitinfo
([
signum
])
info
=
signal
.
sigwaitinfo
([
signum
])
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
wait_helper
(
test
,
self
.
handler
)
self
.
wait_helper
(
test
,
self
.
handler
,
signal
.
SIGALRM
)
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
'need signal.sigtimedwait()'
)
'need signal.sigtimedwait()'
)
...
@@ -671,7 +671,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -671,7 +671,7 @@ class PendingSignalsTests(unittest.TestCase):
info
=
signal
.
sigtimedwait
([
signum
],
(
10
,
1000
))
info
=
signal
.
sigtimedwait
([
signum
],
(
10
,
1000
))
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
wait_helper
(
test
,
self
.
handler
)
self
.
wait_helper
(
test
,
self
.
handler
,
signal
.
SIGALRM
)
# check that polling with sigtimedwait works
# check that polling with sigtimedwait works
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
...
@@ -682,7 +682,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -682,7 +682,7 @@ class PendingSignalsTests(unittest.TestCase):
info
=
signal
.
sigtimedwait
([
signum
],
(
0
,
0
))
info
=
signal
.
sigtimedwait
([
signum
],
(
0
,
0
))
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
assertEqual
(
signum
,
info
.
si_signo
)
self
.
wait_helper
(
test
,
self
.
handler
)
self
.
wait_helper
(
test
,
self
.
handler
,
signal
.
SIGALRM
)
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
'need signal.sigtimedwait()'
)
'need signal.sigtimedwait()'
)
...
@@ -690,7 +690,7 @@ class PendingSignalsTests(unittest.TestCase):
...
@@ -690,7 +690,7 @@ class PendingSignalsTests(unittest.TestCase):
def
test
(
signum
):
def
test
(
signum
):
self
.
assertEqual
(
None
,
signal
.
sigtimedwait
([
signum
],
(
1
,
35500
)))
self
.
assertEqual
(
None
,
signal
.
sigtimedwait
([
signum
],
(
1
,
35500
)))
self
.
wait_helper
(
test
,
self
.
handler
)
self
.
wait_helper
(
test
,
self
.
handler
,
signal
.
SIGALRM
)
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
@unittest.skipUnless
(
hasattr
(
signal
,
'sigtimedwait'
),
'need signal.sigtimedwait()'
)
'need signal.sigtimedwait()'
)
...
...
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