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
af5b688f
Kaydet (Commit)
af5b688f
authored
Ock 10, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
#16896: merge with 3.3.
üst
9e97071f
47236db1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
test_asyncore.py
Lib/test/test_asyncore.py
+8
-16
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_asyncore.py
Dosyayı görüntüle @
af5b688f
...
...
@@ -513,7 +513,7 @@ class BaseClient(BaseTestHandler):
pass
class
BaseTestAPI
(
unittest
.
TestCase
)
:
class
BaseTestAPI
:
def
tearDown
(
self
):
asyncore
.
close_all
()
...
...
@@ -821,34 +821,26 @@ class TestAPI_UseUnixSockets(BaseTestAPI):
unlink
(
self
.
addr
)
BaseTestAPI
.
tearDown
(
self
)
class
TestAPI_UseIPv4Select
(
TestAPI_UseIPv4Sockets
):
class
TestAPI_UseIPv4Select
(
TestAPI_UseIPv4Sockets
,
unittest
.
TestCase
):
use_poll
=
False
@unittest.skipUnless
(
hasattr
(
select
,
'poll'
),
'select.poll required'
)
class
TestAPI_UseIPv4Poll
(
TestAPI_UseIPv4Sockets
):
class
TestAPI_UseIPv4Poll
(
TestAPI_UseIPv4Sockets
,
unittest
.
TestCase
):
use_poll
=
True
class
TestAPI_UseIPv6Select
(
TestAPI_UseIPv6Sockets
):
class
TestAPI_UseIPv6Select
(
TestAPI_UseIPv6Sockets
,
unittest
.
TestCase
):
use_poll
=
False
@unittest.skipUnless
(
hasattr
(
select
,
'poll'
),
'select.poll required'
)
class
TestAPI_UseIPv6Poll
(
TestAPI_UseIPv6Sockets
):
class
TestAPI_UseIPv6Poll
(
TestAPI_UseIPv6Sockets
,
unittest
.
TestCase
):
use_poll
=
True
class
TestAPI_UseUnixSocketsSelect
(
TestAPI_UseUnixSockets
):
class
TestAPI_UseUnixSocketsSelect
(
TestAPI_UseUnixSockets
,
unittest
.
TestCase
):
use_poll
=
False
@unittest.skipUnless
(
hasattr
(
select
,
'poll'
),
'select.poll required'
)
class
TestAPI_UseUnixSocketsPoll
(
TestAPI_UseUnixSockets
):
class
TestAPI_UseUnixSocketsPoll
(
TestAPI_UseUnixSockets
,
unittest
.
TestCase
):
use_poll
=
True
def
test_main
():
tests
=
[
HelperFunctionTests
,
DispatcherTests
,
DispatcherWithSendTests
,
DispatcherWithSendTests_UsePoll
,
FileWrapperTest
,
TestAPI_UseIPv4Select
,
TestAPI_UseIPv4Poll
,
TestAPI_UseIPv6Select
,
TestAPI_UseIPv6Poll
,
TestAPI_UseUnixSocketsSelect
,
TestAPI_UseUnixSocketsPoll
]
run_unittest
(
*
tests
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
Dosyayı görüntüle @
af5b688f
...
...
@@ -614,6 +614,9 @@ Tests
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
- Issue #16896: test_asyncore now works with unittest test discovery.
Patch by Zachary Ware.
- Issue #16897: test_bisect now works with unittest test discovery.
Initial patch by Zachary Ware.
...
...
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