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
819c40ff
Kaydet (Commit)
819c40ff
authored
Mar 01, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
üst
2512a8b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
_dummy_thread.py
Lib/_dummy_thread.py
+1
-5
test_dummy_thread.py
Lib/test/test_dummy_thread.py
+2
-2
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+1
-1
No files found.
Lib/_dummy_thread.py
Dosyayı görüntüle @
819c40ff
...
...
@@ -24,11 +24,7 @@ TIMEOUT_MAX = 2**31
# imports are done when needed on a function-by-function basis. Since threads
# are disabled, the import lock should not be an issue anyway (??).
class
error
(
Exception
):
"""Dummy implementation of _thread.error."""
def
__init__
(
self
,
*
args
):
self
.
args
=
args
error
=
RuntimeError
def
start_new_thread
(
function
,
args
,
kwargs
=
{}):
"""Dummy implementation of _thread.start_new_thread().
...
...
Lib/test/test_dummy_thread.py
Dosyayı görüntüle @
819c40ff
...
...
@@ -35,8 +35,8 @@ class LockTests(unittest.TestCase):
"Lock object did not release properly."
)
def
test_improper_release
(
self
):
#Make sure release of an unlocked thread raises
_thread.e
rror
self
.
assertRaises
(
_thread
.
e
rror
,
self
.
lock
.
release
)
#Make sure release of an unlocked thread raises
RuntimeE
rror
self
.
assertRaises
(
RuntimeE
rror
,
self
.
lock
.
release
)
def
test_cond_acquire_success
(
self
):
#Make sure the conditional acquiring of the lock works.
...
...
Misc/ACKS
Dosyayı görüntüle @
819c40ff
...
...
@@ -35,6 +35,7 @@ Jon Anglin
Jason Asbahr
David Ascher
Chris AtLee
Aymeric Augustin
John Aycock
Jan-Hein Bührman
Donovan Baarda
...
...
Misc/NEWS
Dosyayı görüntüle @
819c40ff
...
...
@@ -44,7 +44,7 @@ Library
- Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError. Patch by
Filip Gruszczyński.
Filip Gruszczyński.
Patch for _dummy_thread by Aymeric Augustin.
- Issue 8594: ftplib now provides a source_address parameter to specify which
(address, port) to bind to before connecting.
...
...
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