Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,17 @@ def test_no_newline(self):
self.assertIn(expected_output_sequence, cleaned_output)


@skipUnless(sys.platform == "darwin", "macOS only")
class TestMainAppleTerminal(TestMain):
"""Test the REPL with Apple Terminal's TERM_PROGRAM set."""

def run_repl(self, repl_input, env=None, **kwargs):
if env is None:
env = os.environ.copy()
env["TERM_PROGRAM"] = "Apple_Terminal"
return super().run_repl(repl_input, env=env, **kwargs)


class TestPyReplCtrlD(TestCase):
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.

Expand Down
Loading