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 8b72c3d commit 7d52ea8Copy full SHA for 7d52ea8
Lib/test/test_pyrepl/test_pyrepl.py
@@ -2002,6 +2002,17 @@ def test_no_newline(self):
2002
self.assertIn(expected_output_sequence, cleaned_output)
2003
2004
2005
+@skipUnless(sys.platform == "darwin", "macOS only")
2006
+class TestMainAppleTerminal(TestMain):
2007
+ """Test the REPL with Apple Terminal's TERM_PROGRAM set."""
2008
+
2009
+ def run_repl(self, repl_input, env=None, **kwargs):
2010
+ if env is None:
2011
+ env = os.environ.copy()
2012
+ env["TERM_PROGRAM"] = "Apple_Terminal"
2013
+ return super().run_repl(repl_input, env=env, **kwargs)
2014
2015
2016
class TestPyReplCtrlD(TestCase):
2017
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.
2018
0 commit comments