summaryrefslogtreecommitdiffstats
path: root/library/python/testing
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2026-01-12 12:02:04 +0300
committerrobot-piglet <[email protected]>2026-01-12 12:20:39 +0300
commit3b7107bb4e310d00ef8ad25a7a8fa96f8702788c (patch)
treea1c983c6f30668c432777274152918d895495227 /library/python/testing
parent5ac718a71891cb6336569a4793075727df086e77 (diff)
Intermediate changes
commit_hash:0d0db5f4afe315e074dd0d198640f329040ec66f
Diffstat (limited to 'library/python/testing')
-rw-r--r--library/python/testing/recipe/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/python/testing/recipe/__init__.py b/library/python/testing/recipe/__init__.py
index 539001249f4..4b99979a290 100644
--- a/library/python/testing/recipe/__init__.py
+++ b/library/python/testing/recipe/__init__.py
@@ -91,8 +91,7 @@ def tty():
if os.isatty(1):
return
- f = open('/dev/tty', 'w+')
- fd = f.fileno()
+ fd = os.open('/dev/tty', os.O_RDWR | os.O_NOCTTY)
os.dup2(fd, 0)
os.dup2(fd, 1)
os.dup2(fd, 2)