You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_ioctl skipped -- Unable to open /dev/tty #83994
Can you give us some information about your operating system? Did you build this version of python yourself? Assuming so, how did you build it? Please show us the header you see when starting this version of python. How are you invoking this test?
Marco-Sulla commented on Mar 1, 2020
Marco-Sullamannequin
MannequinAuthor
More actions
OS: Lubuntu 18.04.4
Steps to reproduce:
sudo apt-get install git libbz2-dev liblzma-dev uuid-dev libffi-dev libsqlite3-dev libreadline-dev libssl-dev libgdbm-dev libgdbm-compat-dev tk-dev libncurses5-dev
git clone https://github.com/python/cpython.git
cd cpython
CC=gcc-9 CXX=g++-9 ./configure --enable-optimizations --with-lto
make -j 4
make test
marco@buzz:~/sources/cpython_test$ python3.9
Python 3.9.0a0 (heads/master-dirty:d8ca2354ed, Oct 30 2019, 20:25:01)
[GCC 9.2.1 20190909] on linux
You can reproduce this on Linux by running tests with setsid.
It seems that the tests were always skipped on CI and buildbots because /dev/tty was not available or not attached to the process. But one test (test_ioctl_set_window_size) did not depend on this and could be run. #132848 makes only tests that depend on /dev/tty be skipped.
Activity
Marco-Sulla commentedon Mar 1, 2020
During
make test, I get the error in the title.(venv_3_9) marco@buzz:~/sources/cpython_test$ ll /dev/tty
crw-rw-rw- 1 root tty 5, 0 Mar 1 15:24 /dev/tty
ericvsmith commentedon Mar 1, 2020
Can you give us some information about your operating system? Did you build this version of python yourself? Assuming so, how did you build it? Please show us the header you see when starting this version of python. How are you invoking this test?
Marco-Sulla commentedon Mar 1, 2020
OS: Lubuntu 18.04.4
Steps to reproduce:
sudo apt-get install git libbz2-dev liblzma-dev uuid-dev libffi-dev libsqlite3-dev libreadline-dev libssl-dev libgdbm-dev libgdbm-compat-dev tk-dev libncurses5-dev
git clone https://github.com/python/cpython.git
cd cpython
CC=gcc-9 CXX=g++-9 ./configure --enable-optimizations --with-lto
make -j 4
make test
marco@buzz:~/sources/cpython_test$ python3.9
Python 3.9.0a0 (heads/master-dirty:d8ca2354ed, Oct 30 2019, 20:25:01)
[GCC 9.2.1 20190909] on linux
pythongh-83994, pythongh-132843: Fix and improve test_ioctl
serhiy-storchaka commentedon Apr 23, 2025
You can reproduce this on Linux by running tests with
setsid.It seems that the tests were always skipped on CI and buildbots because /dev/tty was not available or not attached to the process. But one test (test_ioctl_set_window_size) did not depend on this and could be run. #132848 makes only tests that depend on /dev/tty be skipped.
gh-83994, gh-132843: Fix and improve test_ioctl (GH-132848)
[3.13] pythongh-83994, pythongh-132843: Fix and improve test_ioctl (p…
[3.13] gh-83994, gh-132843: Fix and improve test_ioctl (GH-132848) (G…