]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42789: Enable using /dev/tty in test_curses. (GH-24085)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Jan 2021 10:30:20 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 10:30:20 +0000 (12:30 +0200)
It was temporary disabled for debugging.

Lib/test/test_curses.py

index 31fb882b72434e0dddb14a9529a8711c8b62ba0e..7b40d714742101fff3a025fd98ca4eec7bf454a2 100644 (file)
@@ -85,7 +85,7 @@ class TestCurses(unittest.TestCase):
             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