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
3d1b7a0c
Kaydet (Commit)
3d1b7a0c
authored
Eki 09, 2013
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
e99bdb96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
test_threading.py
Lib/test/test_threading.py
+16
-16
No files found.
Lib/test/test_threading.py
Dosyayı görüntüle @
3d1b7a0c
...
@@ -600,22 +600,22 @@ class ThreadTests(BaseTestCase):
...
@@ -600,22 +600,22 @@ class ThreadTests(BaseTestCase):
self
.
assertIn
(
LOOKING_FOR
,
repr
(
t
))
# we waited at least 5 seconds
self
.
assertIn
(
LOOKING_FOR
,
repr
(
t
))
# we waited at least 5 seconds
def
test_BoundedSemaphore_limit
(
self
):
def
test_BoundedSemaphore_limit
(
self
):
# BoundedSemaphore should raise ValueError if released too often.
# BoundedSemaphore should raise ValueError if released too often.
for
limit
in
range
(
1
,
10
):
for
limit
in
range
(
1
,
10
):
bs
=
threading
.
BoundedSemaphore
(
limit
)
bs
=
threading
.
BoundedSemaphore
(
limit
)
threads
=
[
threading
.
Thread
(
target
=
bs
.
acquire
)
threads
=
[
threading
.
Thread
(
target
=
bs
.
acquire
)
for
_
in
range
(
limit
)]
for
_
in
range
(
limit
)]
for
t
in
threads
:
for
t
in
threads
:
t
.
start
()
t
.
start
()
for
t
in
threads
:
for
t
in
threads
:
t
.
join
()
t
.
join
()
threads
=
[
threading
.
Thread
(
target
=
bs
.
release
)
threads
=
[
threading
.
Thread
(
target
=
bs
.
release
)
for
_
in
range
(
limit
)]
for
_
in
range
(
limit
)]
for
t
in
threads
:
for
t
in
threads
:
t
.
start
()
t
.
start
()
for
t
in
threads
:
for
t
in
threads
:
t
.
join
()
t
.
join
()
self
.
assertRaises
(
ValueError
,
bs
.
release
)
self
.
assertRaises
(
ValueError
,
bs
.
release
)
class
ThreadJoinOnShutdown
(
BaseTestCase
):
class
ThreadJoinOnShutdown
(
BaseTestCase
):
...
...
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