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
4f1353ab
Kaydet (Commit)
4f1353ab
authored
Agu 25, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#18833: add a test for test_telnetlib. Patch by Alex Volkov.
üst
c20a7b97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
test_telnetlib.py
Lib/test/test_telnetlib.py
+8
-0
ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_telnetlib.py
Dosyayı görüntüle @
4f1353ab
...
...
@@ -75,6 +75,14 @@ class GeneralTests(TestCase):
self
.
assertEqual
(
telnet
.
sock
.
gettimeout
(),
30
)
telnet
.
sock
.
close
()
def
testGetters
(
self
):
# Test telnet getter methods
telnet
=
telnetlib
.
Telnet
(
HOST
,
self
.
port
,
timeout
=
30
)
t_sock
=
telnet
.
sock
self
.
assertEqual
(
telnet
.
get_socket
(),
t_sock
)
self
.
assertEqual
(
telnet
.
fileno
(),
t_sock
.
fileno
())
telnet
.
sock
.
close
()
class
SocketStub
(
object
):
''' a socket proxy that re-defines sendall() '''
def
__init__
(
self
,
reads
=
()):
...
...
Misc/ACKS
Dosyayı görüntüle @
4f1353ab
...
...
@@ -1286,6 +1286,7 @@ Norman Vine
Pauli Virtanen
Frank Visser
Johannes Vogel
Alex Volkov
Martijn Vries
Sjoerd de Vries
Niki W. Waibel
...
...
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