We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bdb83 commit 7bb1d9eCopy full SHA for 7bb1d9e
Lib/test/test_pyrepl/test_pyrepl.py
@@ -1475,6 +1475,17 @@ def test_no_newline(self):
1475
self.assertIn(expected_output_sequence, cleaned_output)
1476
1477
1478
+@skipUnless(sys.platform == "darwin", "macOS only")
1479
+class TestMainAppleTerminal(TestMain):
1480
+ """Test the REPL with Apple Terminal's TERM_PROGRAM set."""
1481
+
1482
+ def run_repl(self, repl_input, env=None, **kwargs):
1483
+ if env is None:
1484
+ env = os.environ.copy()
1485
+ env["TERM_PROGRAM"] = "Apple_Terminal"
1486
+ return super().run_repl(repl_input, env=env, **kwargs)
1487
1488
1489
class TestPyReplCtrlD(TestCase):
1490
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.
1491
0 commit comments