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
39d795d8
Kaydet (Commit)
39d795d8
authored
Agu 08, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7564: Skip test_ioctl if another process is attached to /dev/tty.
üst
e7eaec69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
test_ioctl.py
Lib/test/test_ioctl.py
+9
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_ioctl.py
Dosyayı görüntüle @
39d795d8
...
...
@@ -7,9 +7,17 @@ get_attribute(termios, 'TIOCGPGRP') #Can't run tests without this feature
try
:
tty
=
open
(
"/dev/tty"
,
"r"
)
tty
.
close
()
except
IOError
:
raise
unittest
.
SkipTest
(
"Unable to open /dev/tty"
)
else
:
# Skip if another process is in foreground
r
=
fcntl
.
ioctl
(
tty
,
termios
.
TIOCGPGRP
,
" "
)
tty
.
close
()
rpgrp
=
struct
.
unpack
(
"i"
,
r
)[
0
]
if
rpgrp
not
in
(
os
.
getpgrp
(),
os
.
getsid
(
0
)):
raise
unittest
.
SkipTest
(
"Neither the process group nor the session "
"are attached to /dev/tty"
)
del
tty
,
r
,
rpgrp
try
:
import
pty
...
...
Misc/NEWS
Dosyayı görüntüle @
39d795d8
...
...
@@ -136,6 +136,8 @@ Tools/Demos
Tests
-----
- Issue #7564: Skip test_ioctl if another process is attached to /dev/tty.
- Issue #8433: Fix test_curses failure with newer versions of ncurses.
- Issue #9496: Provide a test suite for the rlcompleter module. Patch by
...
...
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