From a478ca4430c21d17bc5f78264b23b83b34f336ca Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 20 Nov 2024 15:50:18 +0100 Subject: [PATCH] gh-127060: IDLE StdOutputFile is no longer a TTY IDLE StdOutputFile.isatty() now returns False instead of True. --- Lib/idlelib/idle_test/test_run.py | 4 ++-- Lib/idlelib/run.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/idlelib/idle_test/test_run.py b/Lib/idlelib/idle_test/test_run.py index 83ecbffa2a197e..8f9f6df863dab7 100644 --- a/Lib/idlelib/idle_test/test_run.py +++ b/Lib/idlelib/idle_test/test_run.py @@ -125,7 +125,7 @@ def test_misc(self): self.assertIsNone(f.newlines) self.assertEqual(f.name, '') self.assertFalse(f.closed) - self.assertTrue(f.isatty()) + self.assertFalse(f.isatty()) self.assertTrue(f.readable()) self.assertFalse(f.writable()) self.assertFalse(f.seekable()) @@ -228,7 +228,7 @@ def test_misc(self): self.assertIsNone(f.newlines) self.assertEqual(f.name, '') self.assertFalse(f.closed) - self.assertTrue(f.isatty()) + self.assertFalse(f.isatty()) self.assertFalse(f.readable()) self.assertTrue(f.writable()) self.assertFalse(f.seekable()) diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index a30db99a619a93..de05cee25b6b9a 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -463,7 +463,7 @@ def name(self): return '<%s>' % self.tags def isatty(self): - return True + return False class StdOutputFile(StdioFile):