mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-143394: On macOS, run main PyREPL tests as "Apple Terminal" as well (GH-143461)
This commit is contained in:
parent
4d21297d28
commit
7dae1077cd
@ -2012,6 +2012,17 @@ class TestMain(ReplTestCase):
|
||||
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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user