[Python-checkins] bpo-42789: Enable using /dev/tty in test_curses. (GH-24085)

serhiy-storchaka webhook-mailer at python.org
Mon Jan 4 05:30:25 EST 2021


https://github.com/python/cpython/commit/b6fc0c406e6b4b86f59b1390142f35da0e364927
commit: b6fc0c406e6b4b86f59b1390142f35da0e364927
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-01-04T12:30:20+02:00
summary:

bpo-42789: Enable using /dev/tty in test_curses. (GH-24085)

It was temporary disabled for debugging.

files:
M Lib/test/test_curses.py

diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 31fb882b72434..7b40d71474210 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -85,7 +85,7 @@ def setUp(self):
             else:
                 try:
                     # Try to open the terminal device.
-                    tmp = open('/xdev/tty', 'wb', buffering=0)
+                    tmp = open('/dev/tty', 'wb', buffering=0)
                 except OSError:
                     # As a fallback, use regular file to write control codes.
                     # Some functions (like savetty) will not work, but at



More information about the Python-checkins mailing list