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
76f570a9
Kaydet (Commit)
76f570a9
authored
Agu 27, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Make tests faster by reaping threads only at the end
üst
a5dba1ab
d54fa555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
test_smtplib.py
Lib/test/test_smtplib.py
+1
-4
No files found.
Lib/test/test_smtplib.py
Dosyayı görüntüle @
76f570a9
...
@@ -177,7 +177,6 @@ class DebuggingServerTests(unittest.TestCase):
...
@@ -177,7 +177,6 @@ class DebuggingServerTests(unittest.TestCase):
self
.
output
=
io
.
StringIO
()
self
.
output
=
io
.
StringIO
()
sys
.
stdout
=
self
.
output
sys
.
stdout
=
self
.
output
self
.
_threads
=
support
.
threading_setup
()
self
.
serv_evt
=
threading
.
Event
()
self
.
serv_evt
=
threading
.
Event
()
self
.
client_evt
=
threading
.
Event
()
self
.
client_evt
=
threading
.
Event
()
# Capture SMTPChannel debug output
# Capture SMTPChannel debug output
...
@@ -202,7 +201,6 @@ class DebuggingServerTests(unittest.TestCase):
...
@@ -202,7 +201,6 @@ class DebuggingServerTests(unittest.TestCase):
# wait for the server thread to terminate
# wait for the server thread to terminate
self
.
serv_evt
.
wait
()
self
.
serv_evt
.
wait
()
self
.
thread
.
join
()
self
.
thread
.
join
()
support
.
threading_cleanup
(
*
self
.
_threads
)
# restore sys.stdout
# restore sys.stdout
sys
.
stdout
=
self
.
old_stdout
sys
.
stdout
=
self
.
old_stdout
# restore DEBUGSTREAM
# restore DEBUGSTREAM
...
@@ -681,7 +679,6 @@ class SMTPSimTests(unittest.TestCase):
...
@@ -681,7 +679,6 @@ class SMTPSimTests(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
real_getfqdn
=
socket
.
getfqdn
self
.
real_getfqdn
=
socket
.
getfqdn
socket
.
getfqdn
=
mock_socket
.
getfqdn
socket
.
getfqdn
=
mock_socket
.
getfqdn
self
.
_threads
=
support
.
threading_setup
()
self
.
serv_evt
=
threading
.
Event
()
self
.
serv_evt
=
threading
.
Event
()
self
.
client_evt
=
threading
.
Event
()
self
.
client_evt
=
threading
.
Event
()
# Pick a random unused port by passing 0 for the port number
# Pick a random unused port by passing 0 for the port number
...
@@ -703,7 +700,6 @@ class SMTPSimTests(unittest.TestCase):
...
@@ -703,7 +700,6 @@ class SMTPSimTests(unittest.TestCase):
# wait for the server thread to terminate
# wait for the server thread to terminate
self
.
serv_evt
.
wait
()
self
.
serv_evt
.
wait
()
self
.
thread
.
join
()
self
.
thread
.
join
()
support
.
threading_cleanup
(
*
self
.
_threads
)
def
testBasic
(
self
):
def
testBasic
(
self
):
# smoke test
# smoke test
...
@@ -816,6 +812,7 @@ class SMTPSimTests(unittest.TestCase):
...
@@ -816,6 +812,7 @@ class SMTPSimTests(unittest.TestCase):
#test infrastructure can support it.
#test infrastructure can support it.
@support.reap_threads
def
test_main
(
verbose
=
None
):
def
test_main
(
verbose
=
None
):
support
.
run_unittest
(
GeneralTests
,
DebuggingServerTests
,
support
.
run_unittest
(
GeneralTests
,
DebuggingServerTests
,
NonConnectingTests
,
NonConnectingTests
,
...
...
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