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 04ace41 commit 3d4281fCopy full SHA for 3d4281f
Lib/test/test_pyrepl/test_pyrepl.py
@@ -2012,6 +2012,17 @@ def test_no_newline(self):
2012
self.assertIn(expected_output_sequence, cleaned_output)
2013
2014
2015
+@skipUnless(sys.platform == "darwin", "macOS only")
2016
+class TestMainAppleTerminal(TestMain):
2017
+ """Test the REPL with Apple Terminal's TERM_PROGRAM set."""
2018
+
2019
+ def run_repl(self, repl_input, env=None, **kwargs):
2020
+ if env is None:
2021
+ env = os.environ.copy()
2022
+ env["TERM_PROGRAM"] = "Apple_Terminal"
2023
+ return super().run_repl(repl_input, env=env, **kwargs)
2024
2025
2026
class TestPyReplCtrlD(TestCase):
2027
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.
2028
0 commit comments