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
7d3d04d6
Kaydet (Commit)
7d3d04d6
authored
May 24, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't try to get the window size if it was never set before.
Fixes the test failure on Solaris.
üst
68faf5b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
test_ioctl.py
Lib/test/test_ioctl.py
+0
-3
No files found.
Lib/test/test_ioctl.py
Dosyayı görüntüle @
7d3d04d6
...
...
@@ -52,13 +52,10 @@ class IoctlTests(unittest.TestCase):
set_winsz_opcode_maybe_neg
,
=
struct
.
unpack
(
"i"
,
struct
.
pack
(
"I"
,
termios
.
TIOCSWINSZ
))
# We're just testing that these calls do not raise exceptions.
saved_winsz
=
fcntl
.
ioctl
(
mfd
,
termios
.
TIOCGWINSZ
,
"
\0
"
*
8
)
our_winsz
=
struct
.
pack
(
"HHHH"
,
80
,
25
,
0
,
0
)
# test both with a positive and potentially negative ioctl code
new_winsz
=
fcntl
.
ioctl
(
mfd
,
set_winsz_opcode_pos
,
our_winsz
)
new_winsz
=
fcntl
.
ioctl
(
mfd
,
set_winsz_opcode_maybe_neg
,
our_winsz
)
fcntl
.
ioctl
(
mfd
,
set_winsz_opcode_maybe_neg
,
saved_winsz
)
finally
:
os
.
close
(
mfd
)
os
.
close
(
sfd
)
...
...
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