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 e57cf1c commit 2cd3b0eCopy full SHA for 2cd3b0e
Lib/test/test_pyrepl/test_pyrepl.py
@@ -1486,6 +1486,17 @@ def test_no_newline(self):
1486
self.assertIn(expected_output_sequence, cleaned_output)
1487
1488
1489
+@skipUnless(sys.platform == "darwin", "macOS only")
1490
+class TestMainAppleTerminal(TestMain):
1491
+ """Test the REPL with Apple Terminal's TERM_PROGRAM set."""
1492
+
1493
+ def run_repl(self, repl_input, env=None, **kwargs):
1494
+ if env is None:
1495
+ env = os.environ.copy()
1496
+ env["TERM_PROGRAM"] = "Apple_Terminal"
1497
+ return super().run_repl(repl_input, env=env, **kwargs)
1498
1499
1500
class TestPyReplCtrlD(TestCase):
1501
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.
1502
0 commit comments