From 05d12eecbde1ace39826320cadf8e673d709b229 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:10:08 +0200 Subject: gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877) --- Lib/test/test_repl.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/test/test_repl.py') diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py index e764e60560d..356ff5b198d 100644 --- a/Lib/test/test_repl.py +++ b/Lib/test/test_repl.py @@ -70,6 +70,7 @@ def run_on_interactive_mode(source): return output +@support.force_not_colorized_test_class class TestInteractiveInterpreter(unittest.TestCase): @cpython_only @@ -273,6 +274,8 @@ class TestInteractiveInterpreter(unittest.TestCase): self.assertEqual(exit_code, 0, "".join(output)) + +@support.force_not_colorized_test_class class TestInteractiveModeSyntaxErrors(unittest.TestCase): def test_interactive_syntax_error_correct_line(self): -- cgit v1.2.3